Actions65
- Posts Actions
- Company Pages Actions
- Get Company Page
- Get Company Pages
- Update Company Page
- Get Company Page Followers
- Get Company Page Analytics
- Get Company Page Posts
- Create Company Page Post
- Get Company Page Insights
- Get Company Page Engagement
- Get Company Page Demographics
- Get Company Page Content
- Get Company Page Events
- Create Company Page Event
- Get Company Page Jobs
- Get Company Page Lifecycle
- Advertising Actions
- Get Ad Accounts
- Get Ad Account
- Get Campaigns
- Get Campaign
- Create Campaign
- Update Campaign
- Delete Campaign
- Get Ad Sets
- Get Ad Set
- Create Ad Set
- Update Ad Set
- Delete Ad Set
- Get Ads
- Get Ad
- Create Ad
- Update Ad
- Delete Ad
- Get Audiences
- Get Audience
- Create Audience
- Update Audience
- Delete Audience
- Get Lead Gen Forms
- Get Lead Gen Form
- Create Lead Gen Form
- Update Lead Gen Form
- Delete Lead Gen Form
- Get Ad Analytics
- Get Campaign Analytics
- Get Ad Set Analytics
- Search Actions
Advertising → Get Lead Gen Forms
AI-generatedOverview
This node operation fetches LinkedIn Lead Generation Forms associated with a specified LinkedIn Company ID. It is part of a comprehensive LinkedIn Marketing API integration designed to facilitate B2B marketing and networking workflows within n8n.
Common scenarios where this node is beneficial:
- Retrieving all lead gen forms created for a company’s LinkedIn advertising account.
- Automating the collection and processing of lead generation form data for marketing campaigns.
- Integrating LinkedIn lead gen forms into CRM or marketing automation systems via workflow automation.
Practical example:
A marketing team wants to automatically pull all active lead gen forms from their LinkedIn ad account daily to analyze performance or sync leads with their CRM. This node can be used in an n8n workflow to retrieve those forms programmatically.
Properties
| Name | Meaning |
|---|---|
| Company ID | The LinkedIn Company ID for which to retrieve lead generation forms. |
| Max Results | Maximum number of lead gen forms to return (1 to 100). Defaults to 20 if not specified. |
| Start Index | Index of the first result to return, useful for pagination. Defaults to 0. |
Output
The output is a JSON array where each item corresponds to a lead generation form retrieved from LinkedIn for the specified company. Each item contains the full details of a lead gen form as returned by the LinkedIn API, including but not limited to:
- Form ID
- Form name
- Status
- Creation date
- Fields included in the form
- Other metadata related to the lead gen form
The output does not include binary data.
Dependencies
- Requires an API key credential for the external "N8N Tools API" service that validates subscription and access.
- Requires OAuth2 credentials for LinkedIn API access.
- The node uses the LinkedIn Marketing API v2 endpoints through helper classes bundled in the node.
- Proper configuration of these credentials in n8n is necessary for successful execution.
Troubleshooting
Invalid subscription or API key error:
If you receive an error indicating invalid subscription or API key, verify that your API key credential for the external validation service is correct and active.LinkedIn API errors:
Errors from LinkedIn may occur due to insufficient permissions, expired tokens, or incorrect Company ID. Ensure the OAuth2 token has the required scopes and the Company ID is valid.Pagination issues:
If you expect more results than returned, adjust theMax ResultsandStart Indexproperties to paginate through all available lead gen forms.Network or timeout errors:
Check network connectivity and retry. Also ensure that the external API URLs are reachable from your environment.