0

I am trying to use the RetrieveSalesforceObjects() function to look-up an object from child BU but the sync is to Parent BU (and we have sync de in shared de).

Is there anything different I have to do when using this function? I seem to come across 500 error.

 SET @accountLookupByClientID = RetrieveSalesforceObjects("Account", "Name, Trading_Name__c, Id", "Client_ID__c", "=", @clientid)
                SET @accountLookupByClientIDCount = RowCount(@accountLookupByClientID)
2
  • 1
    We need more context, can you share the whole code? Where are you running this - on a CloudPage?
    – zuzannamj
    Mar 24, 2021 at 7:59
  • Use a try catch around it for debugging, the retrieve function should produce meaningful errors instead of 500 error. Your Retrieve function looks good, syntactically, btw. salesforce.stackexchange.com/questions/296953/… Mar 24, 2021 at 8:09

0

You must log in to answer this question.

Browse other questions tagged .