question

tanishahudson-2078 avatar image
0 Votes"
tanishahudson-2078 asked SamaraSoucy-MSFT answered

LogicApp that returns newly generated ID back to original source

Hello I am trying to create a LogicApp that first:





  1. Extracts data from CosmosDB, using a query

  2. Loops over the results

  3. Pushes the results data into CRM



Sidenote: Once this data is pushed into CRM, CRM automatically generates an ID for each record. How can I then:



  1. My biggest dilemma is figuring out how can I return the newly generated ID back to the original CosmosDB container in which it was pulled from?





I have started on this and these are my questions:



Does this first part look correct in what I am doing? I must use this SQL query for this:

a. I am simply telling the Logic App to extract data from a particular container inside CosmosDB

13648-image.png



b. Then I would like to loop over the results I just obtained, and push this to CRM







c. My dilemma is: Once data is pushed to CRM, CRM then automatically generates an ID for each record that is uploaded. How would I then return the updated ID to cosmos? I am not sure how to construct this in LogicApps and have been researching examples of this.



Any help is greatly appreciated.

Thanks


[2]: https://i.stack.imgur.com/B7YsU.png

azure-logic-appsazure-cosmos-db
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SamaraSoucy-MSFT avatar image
0 Votes"
SamaraSoucy-MSFT answered

Duplicate post to #52165

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.