6. Get Lead Gen Form tied to the user's Events
GET {{baseUrl}}/leadGenForms?owner=(organization:urn%3Ali%3Aorganization%3A{{organization_id}})&q=owner
At this point, the user has picked the organization(s) and the event(s) they are trying to collect leads for. This step will retrieve the form(s) associated with the selected event(s).
The id
and versionId
field will help you understand which form(s) (from step 4) are tied to the event.
Please refer to Find Forms by Owner for more information.
Step 7: Ask the user to select and map fields. Your app's UI should ask the user to map fields between the source (Form tied to the selected event) and the destination (most likely a CRM table). The app should be flexible enough to support a user being able to map all possible fields (including hidden fields and custom questions in the future) and consent texts.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
owner | string | ||
q | string |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
LinkedIn-Version | string | ||
X-Restli-Protocol-Version | string |
RESPONSES
status: OK
{"paging":{"start":0,"count":10,"links":[]},"elements":[{"owner":{"organization":"urn:li:organization:73841066"},"hiddenFields":[{"name":"Event name","value":"test event 5.19.22"}],"versionId":1,"created":{"time":1652994830991},"creationLocale":{"country":"US","language":"en"},"name":"Registration form for test event 5.19.22","lastModified":{"time":1652994830991},"state":"PUBLISHED","id":6933162831609548800,"content":{"questions":["urn:li:leadGenFormQuestion:415148","urn:li:leadGenFormQuestion:413300","urn:li:leadGenFormQuestion:413956","urn:li:leadGenFormQuestion:412068","urn:li:leadGenFormQuestion:411540","urn:li:leadGenFormQuestion:414060"],"description":{"localized":{"en_US":"Register for this event with your profile information"}},"headline":{"localized":{"en_US":"Registration Form"}},"legalInfo":"urn:li:leadGenFormLegalInfo:509724"}},{"owner":{"organization":"urn:li:organization:73841066"},"hiddenFields":[{"name":"Event name","value":"another one!"}],"versionId":1,"created":{"time":1652113937250},"creationLocale":{"country":"US","language":"en"},"name":"Registration form for another one!","lastModified":{"time":1652113937250},"state":"PUBLISHED","id":6929468095468113920,"content":{"questions":["urn:li:leadGenFormQuestion:415148","urn:li:leadGenFormQuestion:413300","urn:li:leadGenFormQuestion:413956","urn:li:leadGenFormQuestion:412068","urn:li:leadGenFormQuestion:411540","urn:li:leadGenFormQuestion:414060"],"description":{"localized":{"en_US":"Register for this event with your profile information"}},"headline":{"localized":{"en_US":"Registration Form"}},"legalInfo":"urn:li:leadGenFormLegalInfo:509724"}}]}