4. Get user's events tied to the chosen organization
GET {{baseUrl}}/events?organizer=urn%3Ali%3Aorganization%3A{{organization_id}}&q=organizerLeadGenFormEnabledEvents
Based on an organization (company page), this step narrows down to the online events for which leads can be collected. If the user has chosen multiple organizations in the previous step, simply send multiple requests.
Take note of the versionedLeadGenForm
field(s). You'll want the leadGenFrom id and version to know the correct form(s) from the response body in the next step. Let's say the user selects the first event named cool event
(see the example response). Take note of "versionedLeadGenForm": "urn:li:versionedLeadGenForm:(urn:li:leadGenForm:
6933162831609548800,1)"
__**. We'll want to grab form with id 6933162831609548800, version 1 from the response in step 6. A partner app should be built in a way that it can support multiple versions of a form in the future.
Refer to the Events API page for information on this API.
Step 5: Ask the user to select the Event(s) whose leads should be synced.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
organizer | string | ||
q | string |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
LinkedIn-Version | string | ||
X-Restli-Protocol-Version | string |
RESPONSES
status: OK
{"paging":{"start":0,"count":2,"links":[{"type":"application/json","rel":"next","href":"/rest/events?q=organizerLeadGenFormEnabledEvents\u0026organizer=urn%3Ali%3Aorganization%3A11223344\u0026start=2\u0026count=2"}],"total":8},"elements":[{"timeRangeV2":{"endsAt":1656633600000,"startsAt":1653001200000},"settings":{"additionalEntryCriteria":{"compositeCriteriaWithLogicalOr":[{"com.linkedin.eventsproduct.RegistrationThroughLeadGenFormV2":{"versionedLeadGenForm":"urn:li:versionedLeadGenForm:(urn:li:leadGenForm:6933162831609548800,1)"}}],"logicalOperatorForCombiningWithOtherEntryCriteria":"AND"},"entryCriteria":"PUBLIC","attendanceMode":"VIRTUAL","discoveryMode":"LISTED","mapsToSingleUgcPost":true,"invitationSettings":{"invitationPrivilegePolicies":[{"com.linkedin.eventsproduct.SimpleEventInvitationPrivilegePolicy":"ALL_ATTENDEES"}]}},"vanityName":"testevent5-19-226933162831823466496","localizedName":"test event 5.19.22","organizer":"urn:li:organization:11223344","created":{"actor":"urn:li:person:CjfiI9jisl","time":1652994831107},"name":{"localized":{"en_US":"test event 5.19.22"},"preferredLocale":{"country":"US","language":"en"}},"lastModified":{"actor":"urn:li:person:CjfiI9jisl","time":1652994831574},"id":6933162831823466496,"localizedDescription":{"rawText":""}},{"timeRangeV2":{"endsAt":1651708800000,"startsAt":1649286000000},"settings":{"additionalEntryCriteria":{"compositeCriteriaWithLogicalOr":[{"com.linkedin.eventsproduct.RegistrationThroughLeadGenFormV2":{"versionedLeadGenForm":"urn:li:versionedLeadGenForm:(urn:li:leadGenForm:6917591351568084992,1)"}}],"logicalOperatorForCombiningWithOtherEntryCriteria":"AND"},"entryCriteria":"PUBLIC","attendanceMode":"VIRTUAL","discoveryMode":"LISTED","mapsToSingleUgcPost":true,"invitationSettings":{"invitationPrivilegePolicies":[{"com.linkedin.eventsproduct.SimpleEventInvitationPrivilegePolicy":"ALL_ATTENDEES"}]}},"vanityName":"testevent4-6-22creation6917591351790366720","localizedName":"test event 4.6.22 creation","organizer":"urn:li:organization:11223344","created":{"actor":"urn:li:person:CjfiI9jisl","time":1649282300951},"name":{"localized":{"en_US":"test event 4.6.22 creation"},"preferredLocale":{"country":"US","language":"en"}},"description":{"localized":{"en_US":{"rawText":"description 4.6.22"}},"preferredLocale":{"country":"US","language":"en"}},"lastModified":{"actor":"urn:li:person:CjfiI9jisl","time":1649282301349},"id":6917591351790366720,"localizedDescription":{"rawText":"description 4.6.22"}}]}