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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Combine conditions on ...
Power Automate
Unanswered

Combine conditions on filter array

(0) ShareShare
ReportReport
Posted on by

Hi

 

I'm trying to combine two AND on the following:

 

@And(equals(item()?['_me_areaoptionset_label'], 'United States'),greater(item()?['msevtmgt_eventstartdate'],utcnow())

 

but I'm getting the following error:

 

There is an unterminated string literal at position 28 in 'msevtmgt_eventstartdate gt ''.

 

Can you help me to understand what is going wrong?

 

Thanks

 

Ezequiel 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,183 Most Valuable Professional on at

    Hi @ezequiel,


    It looks like you are missing a closing ). And I would also say you probably needs some formatting in your utcNow funciton as well.

     

    Can you try this instead:

    @and(equals(item()?['_me_areaoptionset_label'], 'United States'),greater(item()?['msevtmgt_eventstartdate'], utcNow('yyyy-MM-dd')))

     

    Note: you might need to change the formatting to the formatting you are using in that eventstartdate though.

  • ezequiel Profile Picture
    on at

    Thanks for the reply. I tested it with your suggestion, but I'm still getting the error

    "There is an unterminated string literal at position 28 in 'msevtmgt_eventstartdate gt ''."

     

    the format of the eventstartdate is correct as yyyy-MM-dd

     

    Any suggestion?

     

    Thanks

     

    Ezequiel

  • Expiscornovus Profile Picture
    33,183 Most Valuable Professional on at

    Hi @ezequiel,


    Can you share a couple of screenshots of your flow setup? 

  • v-bofeng-msft Profile Picture
    on at

    Hi @ezequiel :

    Maybe you could try:

    @And(
     equals(item()?['_me_areaoptionset_label'], 'United States'),
     greater(formatDateTime(item()?['msevtmgt_eventstartdate']),utcnow())
    )

    If this formula not work,could you please tell me:

    • What is msevtmgt_eventstartdate's  data type?
    • Could you provide a demo of the data source?

    Best Regards,

    Bof

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard