web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Query cosmosDB, extrac...
Power Automate
Unanswered

Query cosmosDB, extract matching items, if items do not match, send email

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am setting up this LogicApp and want to see if my approach is correct:

 

 

I wish to push data from CosmosDB into CRM, and then return these items back to CosmosDB and replace its ID. Not all of the push to CRM is direct due to some of CRMs fields consisting of 'lookup fields'. I have a list of the GUIDs for the lookup fields, but not every record has a match. For the records that do not have a match, I wish to send an email. This is my flow so far:

 

jasmine2020_0-1596678714476.png

jasmine2020_1-1596678770641.png

jasmine2020_3-1596678829257.png

 

jasmine2020_5-1596678888865.png

 

 

I am unsure of my highlighted fields here. Is this the correct approach?

Any suggestion or advice is appreciated

Categories:
I have the same question (0)
  • v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @jasmine2020,

     

    The "Array of ..." seems like an array, the "Document" is an Object, so the comparison not correct.

    If you want to compare two fields, you should make sure the two fields are same type. If you want to confirm an array contains a string, use "Contains" condition will be correct choice.

    Annotation 2020-08-28 095124.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 608

#2
Valantis Profile Picture

Valantis 416

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard