Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Difficulty with creating a flow - comparison syntax

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I have been trying to create a flow, in order to trigger automated emails to respective parties to notify that their campaign ends within 2 days prior to the End Date. The list which contains information on the End Date and other campaign information is up on Sharepoint.

 

So far I have done the following:

  • used a 'Recurrence' to schedule the flow to run once per day
  • used the 'Compose' to create a variable: End_x0020_Date eq addDays(utcNow(),2,'yyyy-MM-dd')
  • used 'Get items' and invoking the output from Compose within theFilter Query field6.PNG
  • And 'Apply to each' (view the following image): 5.PNGThe first three steps had succeeded - the 'Get items' has identified the campaign which ends in 2 days. However, I am still having difficulties in the last method for Apply to each for the comparison. 

Any assistance would very much appreciated 🙂

  • yashag2255 Profile Picture
    24,442 Super User 2024 Season 1 on at
    Re: Difficulty with creating a flow - comparison syntax

    @Anonymous 

     

    This  seems to be an authentication issue with the connectors you are using. Please log out of the current session, close the browser window and start a fresh session. Re login into flow and run it.

     

    Alternatively, you can try deleting the current connection to sharepoint and create a new connection. 

     

    Hope this Helps.

     

  • Community Power Platform Member Profile Picture
    on at
    Re: Difficulty with creating a flow - comparison syntax

    Hi,

     

    I have attempted your solution:7.1.JPG

    However it is displaying the error message Unable to get token for audience 'https://management.azure.com/'. Details: 'AADSTS50079: Due to a configuration change made by your administrator, or because you moved to a new location, you must enroll in multi-factor authentication to access '797f4846-ba00-4fd7-ba43-dac1f8f63013'. Trace ID: 4d75f5d9-ec30-49e. I am wondering if this a problem with the syntax that I have put or a problem with access to sharepoint?

  • yashag2255 Profile Picture
    24,442 Super User 2024 Season 1 on at
    Re: Difficulty with creating a flow - comparison syntax

    Hey! you should modify your expression in apply to each condition as 

    formatDateTime(addDays(utcNow(),2),'yyyy-MM-dd')
     
    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow