title | description |
---|---|
Steampipe Table: salesforce_lead - Query Salesforce Leads using SQL |
Allows users to query Leads in Salesforce, providing detailed information about potential sales opportunities and customer data. |
Salesforce Leads are a key resource in Salesforce, a customer relationship management solution. They represent potential sales opportunities and contain information about individuals or representatives of organizations who are interested in the product or service that the company offers. Leads can be converted into accounts, contacts, or opportunities when they are qualified.
The salesforce_lead
table provides insights into Leads within Salesforce. As a sales manager or marketing professional, explore Lead-specific details through this table, including personal information, source, status, and associated company details. Utilize it to track and analyze potential sales opportunities, understand customer behavior, and plan targeted marketing strategies.
Important Notes
- If the
naming_convention
configuration argument is set toapi_native
, please see API Native Examples.
Explore the various leads in your Salesforce system to understand their status and gain insights into their associated industries. This can assist in identifying potential conversion opportunities and assessing lead quality.
select
id,
name,
company,
email,
industry,
is_converted,
rating,
status,
website
from
salesforce_lead;
select
id,
name,
company,
email,
industry,
is_converted,
rating,
status,
website
from
salesforce_lead;
Analyze the distribution of leads across different industry sectors. This is beneficial for understanding which industries are more engaged with your business, aiding in strategic decision-making.
select
count(*),
industry
from
salesforce_lead
group by
industry;
select
count(*),
industry
from
salesforce_lead
group by
industry;
Determine the distribution of leads based on their status. This can provide insights into your sales pipeline and help pinpoint areas for improvement.
select
count(*),
status
from
salesforce_lead
group by
status;
select
count(*),
status
from
salesforce_lead
group by
status;
If the naming_convention
config argument is set to api_native
, the table and column names will match Salesforce naming conventions.
Discover the segments that are converted and their respective ratings in a particular industry. This can be used to pinpoint specific areas for potential business growth and improvement.
select
"ID",
"Name",
"Industry",
"IsConverted",
"Rating",
"Status",
"Website"
from
"Lead";
select
"ID",
"Name",
"Industry",
"IsConverted",
"Rating",
"Status",
"Website"
from
"Lead";
Determine the distribution of leads across various industry types. This can help in identifying which industries are more engaged with your services, enabling targeted marketing efforts.
select
count(*),
"Industry"
from
"Lead"
group by
"Industry";
select
count(*),
"Industry"
from
"Lead"
group by
"Industry";
Discover the segments that are identified as 'cold' leads in your business. This is useful to target specific marketing strategies to improve conversion rates.
select
"ID",
"Name",
"Industry",
"IsConverted",
"Rating",
"Status",
"Website"
from
"Lead"
where
"Rating" = 'Cold';
select
"ID",
"Name",
"Industry",
"IsConverted",
"Rating",
"Status",
"Website"
from
"Lead"
where
"Rating" = 'Cold';
Explore which leads are qualified, allowing you to focus your efforts on potential customers who have been pre-identified as likely to convert. This can help streamline your sales process and improve efficiency.
select
"ID",
"Name",
"Industry",
"IsConverted",
"Rating",
"Status",
"Website"
from
"Lead"
where
"Status" = 'Qualified';
select
"ID",
"Name",
"Industry",
"IsConverted",
"Rating",
"Status",
"Website"
from
"Lead"
where
"Status" = 'Qualified';