Showing results for 
Search instead for 
Did you mean: 

Recognize 'lookup' ID's (CRM) according to values in CosmosDB and set it into a Logic App


I have data coming from CosmosDB that needs to be pushed into CRM. I am using a LogicApp for this.



There are multiple IDs that have different attributes associated with them:
For instance the 'ems_featurecategoryid'. Each has a different name that goes along with its unique ID. (This the raw data that is within CRM)

Figure A






Here is the CRM interface and the lookup field (feature category) in which I wish to push the CosmosDB data into:

Figure B







Here is the CosmosDB data that hold this FeatureCategory attribute:

Figure C




There are over 3000 of these. How would I map the IDs that are within CRM (Figure A) with CosmosDB (Figure C), so that when a value input is provided to the Feature Category lookup in CRM, this is recognized according to the value in CosmosDB?

This is what I am thinking:











I provided the Logic App with one of the GUIDs from Figure A. I am not sure if this is the right thing to do. The value is pushed through, but how do I account for all of the other IDs?







Any help or suggestions are appreciated.


Solution Sage
Solution Sage

Hi @jasmine2020 ,


Is it that you want to insert data from Cosmos DB to CRM. Having different attributes should not be a problem as long as you have GUID present in CRM. 



Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (3,594)