I'm working on a Boomi integration with the Marketo Bulk Export API and encountering an issue with dynamic parameter substitution in HTTP connector URLs.
My Boomi process has these steps:
exportId
exportId
The problem occurs in step 4, where the exportId
from step 3 is not being properly substituted in the URL. In the request logs, I can see:
https://[instance].mktorest.com/bulk/v1/leads/export/{exportId}/enqueue.json
Instead of the actual value replacing {exportId}
. When I check the response, I get:
{"requestId":"[request-id]","success":false,"errors":[{"code":"1013","message":"Export id '{exportId}' not found"}]}
// Extract exportId from JSON response
String exportId = json.result[0].exportId
// Store as document property
props.setProperty("exportId", exportId)
props.setProperty("extractedExportId", exportId)
https://[instance].mktorest.com/bulk/v1/leads/export/{exportId}/enqueue.json
https://[instance].mktorest.com/bulk/v1/leads/export/${document.exportId}/enqueue.json
https://[instance].mktorest.com/bulk/v1/leads/export/${document.property.exportId}/enqueue.json
The message shape right before the connector shows the correct export ID is present:
Marketo Bulk Export: Success
Export ID: 57646fgh65test
Status: Created
EXPORTID=57646fgh65test
What is the correct syntax for dynamic parameter substitution in Boomi HTTP connector URLs? How can I properly pass the export ID from one API call to the next?
Try passing the resource path in this manner and make exportId as a replacement variable (checkbox)
https://[instance].mktorest.com/bulk/v1/leads/export/
exportId
/enqueue.json