Bulk Enqueue Postings to Generate Leads Action
Enqueues recruitment posting IDs so that candidate leads are generated asynchronously.
This action is available in API version 68.0 and later.
Pass one or more RecruitmentPosting IDs to enqueue asynchronous candidate lead generation. Duplicate IDs are removed before enqueueing. Postings that generated leads in the last 24 hours are skipped. The action returns as soon as the postings are enqueued and doesn’t wait for leads to be created. Use it from a scheduled flow, a process, or REST API.
You can pass up to 2,000 posting IDs in one request. If you pass more, the request fails with the INVALID_INPUT error.
To access the Bulk Enqueue Postings to Generate Leads action, your org must have the Talent Recruitment Management Specialist Add-on, and the user must have the Talent Recruitment Management Specialist Access permission set. When you invoke this action from a scheduled flow, it runs as the Automated Process user. For setup, see Set Up Lead Sourcing.
URI: /services/data/vXX.X/actions/standard/bulkEnqueuePostingsToGenLeads
Where XX.X is the latest API version.
Formats: JSON
HTTP Methods: GET, POST
Authentication: Authorization: Bearer TOKEN
Where TOKEN is a variable.
| Input | Type | Description |
|---|---|---|
recruitmentPostingIds | String[] | Required. A collection of RecruitmentPosting record IDs to enqueue for candidate lead generation. Accepts 15-character or 18-character IDs. You can also pass a comma-separated string of IDs. The action normalizes IDs to the 15-character format and removes duplicates, keeping the first occurrence of each ID. Maximum 2,000 IDs per request. Non-existent posting IDs are reported as FAILED in the response. |
| Output | Type | Description |
|---|---|---|
enqueuedPostings | Apex-defined variable | The enqueue result for each recruitment posting ID. Each item includes:
|
responseMessage | String | A summary of the operation, such as how many postings were enqueued, skipped, or failed. |
The invocable action result also includes isSuccess. This value is true when every posting is ENQUEUED or SKIPPED. If any posting is FAILED, isSuccess is false and the result includes errors. Always inspect status on each item in enqueuedPostings.
GET
This example shows how to get the details of the Bulk Enqueue Postings to Generate Leads action type.
POST
Here’s a request for the Bulk Enqueue Postings to Generate Leads action.
Here’s a response for the Bulk Enqueue Postings to Generate Leads action.
See Also