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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Unable to apply condition on link entity attribute in ms flow.

(0) ShareShare
ReportReport
Posted on by 425

Hi,

I am sending an email using ms flow, In this flow I am using the fetch xml(list record) to get the link entity attribute and I want to check the null condition on link entity attribute.

As I have applied this expression  "items('Apply_to_each')?['emailaddress1'] is not equal null" it's giving false result while this emailaddress1 field contains the valid email address.

 Fetch:

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="invoice">
<attribute name="invoiceid" />
<attribute name="cyno_preparationofinvoicedate" />
<attribute name="cyno_invoiceduedate" />

<link-entity name="cyno_audits" from="cyno_auditsid" to="cyno_audits" link-type="inner" alias="aa">
<attribute name="cyno_auditfile" />
<link-entity name="cyno_lease" from="cyno_leaseid" to="cyno_leasefile" link-type="inner" alias="lease">
<attribute name="cyno_leasenumber" />
<attribute name="cyno_clientinternal" />
<attribute name="cyno_ctspm" />
<attribute name="cyno_ctsauditor" />

<link-entity name="account" from="accountid" to="cyno_account" link-type="inner" alias="account">
<link-entity name="contact" from="parentcustomerid" to="accountid" link-type="inner" alias="contact">
<attribute name="fullname" />
<attribute name="emailaddress1" />
<filter type="and">
<condition attribute="cyno_invoicingcontact" operator="eq" value="1" />
</filter>
</link-entity>
</link-entity>
</link-entity>
</link-entity>
</entity>
</fetch>

Q004b.png

I have the same question (0)
  • Verified answer
    Wahaj Rashid Profile Picture
    11,321 on at

    Hi,

    Thank you for your query.

    Linked Entity attributes are accessed using an alias.

    In your example, try with contact.emailaddress1.

    It would be easier for you to read/debug the body of the output of the list action to understand how the result is stored.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans