简体   繁体   中英

Rest api for Salesforce Markting Cloud (ExactTarget) returns Categories from Parent Business Unit

I have two business units in my salesforce marketing cloud account with different folders structures. For example Parent Business Unit (PBU) has 3 folders by name ABC, PQR, and XYZ and Child Business Unit(CBU) has 2 folders by name AA,BB .

When I run the OAuth2.0 end point get the token using client id and secret of CBU and pass the token to get categories endpoint, the response gives me categories of the PBU ie ABC,PQR,XYZ .

Is there any setting in salesforce which I need to do which will return assets of specific BUs using rest endpoints?

Thanks, Swapnil

You will have to add the clientID within your API code to get the data from the specific Business Unit. This document will be helpful - https://developer.salesforce.com/docs/atlas.en-us.mc-apis.meta/mc-apis/using_clientid_in_your_soap_api_code.htm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM