Accessing SFDC Sync Attributes on Program via REST API | Community
Skip to main content
New Participant
September 8, 2020
Solved

Accessing SFDC Sync Attributes on Program via REST API

  • September 8, 2020
  • 1 reply
  • 2944 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

Yes. The property "sfdcId" is returned by the browse endpoint (/rest/asset/v1/programs.json) and by direct fetching of the program.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
September 8, 2020

Yes. The property "sfdcId" is returned by the browse endpoint (/rest/asset/v1/programs.json) and by direct fetching of the program.

New Participant
September 9, 2020

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": [] } ] }

 

SanfordWhiteman
New Participant
September 9, 2020

Is that Program currently synced with an SFDC Campaign? (Show a screenshot pls.)