Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Logic Apps - Condition after Dynamics List Records

Posted on by 370

Hello,

Recently I've started work with Logic Apps. What I'm trying to achieve is simple:

1. App is triggered, when new record of custom entity ("Posted Field") is created - it works.

2. Next step is switch, with one case - string field in "Posted Field" has certain value - it works.

3. Then all "Contacts" are listed and filtered by email eq to value stored in "Posted Field", and top count = 1 - and it works

4. Next one is condition which should:

if true (there's no "Contact" found in step 3)- create new "Contact" based on "Posted Field" data and store that "Contact" in "Posted Field" - that's broken

if false (there's a "Contact" found in step 3) - just store founded "Contact" in "Posted Field" - that's ok

So my question is, which dynamics value should I use in condition statement, to get it done?

I've tried "List of Item" eq null and "Value" eq null, tried "Value" contains or doesn't contain "whatever" but I still can't achieve my goal.

One more thing - I cant use any dynamics value referring to "Contact" because then I'll get "For Each" from "List Records", but there's no "each", when array is empty :)

Any sugestions will be appreciated.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans