I am looking to get a lead from dynamics api and from that get the account of that lead and parse the description field of the account. The idea is we will make an outbound call on a lead, the script has the leadid in the outbound list, on script load we get data about the lead and the description of the account of the lead and populate a textbox with the account description. I don't know how to get the lead data then the account data.
I was able to get what I needed using Dynamics expand statement in the query
https://<>.crm.dynamics.com/api/data/v8.1/leads(leadid)?$select=statecode&$expand=Organization($select=description,name)
Hi jLee,
If I am understanding correctly what you want should be possible. Actions can be chained together using custom actions. In a custom action we will wait for one action in that action to complete before doing the other. This means you could get the description field then in the next action parse it and then do another action to use the account number. This can all be done in one custom action.
Yes I just figured that out and have been using it. Thanks for the reply.
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.