LogicApp that returns newly generated ID back to original source

Jasmine2020 1 Reputation point
2020-07-26T21:29:10.63+00:00

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

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,873 questions
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,455 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Samara Soucy - MSFT 5,051 Reputation points
    2020-07-28T19:00:38.59+00:00

    Duplicate post to #52165

    0 comments No comments