In one service action we have two different API calls, one that goes to our sandbox CRM/database for dev and QA and another that goes to our live CRM/database for production. We need to do this because we need the field IDs of the desired data, and they're different in the different environments. The service action is meant to output a record and that record is a custom data type from a structure:
That Data_Client is the data type of the record output parameter from the service action, but the AccountManager data type and the Value structure are stored within our dev/QA API method. When I try accessing them in the production API method they don't show up in the list. I tried creating new structures within the structures folder, but they too don't show up in the list. I tried adding them to a folder called Common, but that didn't work either. Is the only solution to create a whole new service action instead of trying to find a way to share data structures between API methods?
Hi Daniel Johnson,
Is PROD and Sandbox JSON responses same or different?
Same. It's the default response for a user field from our database.
Have you given JSON names in the structure for production api?
Hi @Daniel Johnson ,
Did you verify that Production api is returning data or not in response?
It might be possible there is nothing returned by the api in response that's by it's not showing in the structure list.
Thanks,
Arun Rajput