Primary Email not Empty and Inactive?

Options

Email question: I'm pulling from the Constituents connector, Get a Constituent and something has me baffled.

I want to display the primary email address but only if it is active. Primary email and also be marked inactive in NXT.

I have a condition that says

empty(outputs('Get_a_constituent-_Donor')?['body/email/address']) = false

AND

outputs('Get_a_constituent-_Donor')?['body/email/inactive'] is equal to No

This returns false everytime. I don't understand why. My false is an expression. The No is a text field. I have another flow that uses OR but that doesn't make sense either.

Thanks,

Carol

Comments

  • Alex Wong
    Alex Wong Community All-Star
    Ninth Anniversary 1,500 Likes 2500 Comments Name Dropper

    @Carol Grant
    the email property of a get constituent (or list constituent) api provide the subproperty of inactive, primary, and do_not_email as boolean. So they are all true or false value

    I did a quick test and get and list constituent API endpoint after changing my primary email to inactive, and get constituent does not return the email property.

    Meaning, if list constituent behave the same as get constituent, then if you got a email proeprty back from get constituent, it is not going to be inactive.

    if you have to test for it, it will be more like this:

    empty(outputs('Get_a_constituent-_Donor')?['body/email/address']) = false

    AND

    outputs('Get_a_constituent-_Donor')?['body/email/inactive'] = false

  • @Alex Wong- Thank you! I got in my mind it had be “No” because that was what was returned.

  • Alex Wong
    Alex Wong Community All-Star
    Ninth Anniversary 1,500 Likes 2500 Comments Name Dropper

    @Carol Grant
    were you able to get it to work?

    maybe you thinking “No” in terms of query output giving you “Yes” or “No” for boolean values. API will always give true/false

Categories