Hi there,
I'm using the REST API. I want to check if a given Program has been synced with SFDC and retrieve the SFDC Campaign Id if it has been synced. Is this possible?
Thanks.
Solved! Go to Solution.
Yes. The property "sfdcId" is returned by the browse endpoint (/rest/asset/v1/programs.json) and by direct fetching of the program.
Thanks for the reply, Sanford. When I retrieve a program with that endpoint, sfdcId isn't included in the response. Below is an example. Why might this be?
{
"success": true,
"errors": [],
"requestId": "####################",
"warnings": [],
"result": [
{
"id": 9283,
"name": "Program name",
"description": "",
"createdAt": "2018-06-15T20:54:27Z+0000",
"updatedAt": "2018-06-15T20:54:27Z+0000",
"url": "https://app-abj.marketo.com/",
"type": "Default",
"channel": "Telemarketing",
"folder": {
"type": "Folder",
"value": 19189,
"folderName": "My Folder"
},
"status": "",
"workspace": "Default",
"tags": [
{
"tagType": "Program Lead",
"tagValue": "Jane Doe"
}
],
"costs": []
}
]
}
Is that Program currently synced with an SFDC Campaign? (Show a screenshot pls.)
@SanfordWhiteman wrote:
Is that Program currently synced with an SFDC Campaign? (Show a screenshot pls.)
Hi Sanford,
I see now that the field is only present in the response if the campaign has already been synced.
Thanks for your help.