Skip to main content
Level 2
September 8, 2020
Resuelto

Accessing SFDC Sync Attributes on Program via REST API

  • September 8, 2020
  • 4 respuestas
  • 2983 visualizaciones

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.

Este tema ha sido cerrado para respuestas.
Mejor respuesta de SanfordWhiteman

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

4 respuestas

SanfordWhiteman
Level 10
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.

Level 2
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
Level 10
September 9, 2020

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