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 / Need some Help with th...
Power Automate
Unanswered

Need some Help with this Vacation list flow i am trying to create

(0) ShareShare
ReportReport
Posted on by

Good Morning all! 

 

i am in the middle of trying to create a flow that grabs our Vacation list on our SharePoint. we have a list that gets created when a  user puts in vacation time and is a list on our SharePoint what I want to do is grab that data but make it so it only grabs and shows from todays date + 5 days. i tried using utcNOW(5) but that formula did not work i am at somewhat a loss. any help would be amazing thanks for taking the time to read this !!

 

Cheers  

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

    Hi @Anonymous,

     

    You can use the addDays function to calculate a date 5 days in the future. The expression would be:

    addDays(UtcNow(), 5)
  • Community Power Platform Member Profile Picture
    on at

    Thanks for the reply ill give that expression a try for sure. for some reason having bigger issues this morning i cant even get my flow to grab any data at all from the SharePoint list. 

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

    Hi @Anonymous,

     

    If you need any additional help configuring that let us know.

     

    Btw, below is an example on how you could use that expression in a condition action.

    This example shows how you can retrieve vacation list items which have a startdate (datetime column) of 5 days or more in the future.

     

    The condition itself is:

    formatDateTime(items('Apply_to_each')?['StartDate'], 'yyyy-MM-dd')

    is greater than or equal to

    addDays(utcNow(), 5, 'yyyy-MM-dd')

    vacationlist.png

  • Community Power Platform Member Profile Picture
    on at

    thanks again for the reply. i was able to get my data to be pulled but i found what you tried to do and kept getting error msg. 

     

     

    i tried this - but didn't work still pulled all data from like years ago. 

    Ushi_0-1631026920165.png

     

    when i tried what you advised i got this error -

     

    Ushi_1-1631027029721.png

     

     

    i feel like I'm getting close! 

     

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

    Hi @Anonymous,

     

    The expression I shared refers to an action called Apply to Each. In your case the first apply to each action is called Apply to Each 3.

     

    You can change the expression to reflect the correct action name. 

    formatDateTime(items('Apply_to_each_3')?['StartDate'], 'yyyy-MM-dd')

     

    Also make sure you change the expression to use the correct column name. In my example it was called StartDate, yours is StartTime as what I can tell from the first screenshot.

  • Community Power Platform Member Profile Picture
    on at

    thanks again for the reply i gave it a shot but got this error msg now - 

     

    Ushi_0-1631035779638.png

     

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

    Hi @Anonymous,

     

    Is your StartTime a required field? Or is it possible that in your Vacation list you have items were this column is empty?

  • Community Power Platform Member Profile Picture
    on at

    Morning,

     

    the three fields i am trying to pull our Name(Title) - Start Time - End Time and all three of those fields have data but for some reason its either pulling all data from years of vacation time or its not pulling any data at all with specific conditions. 

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

    Hi @Anonymous,

     

    Can you double check in the Vacation List Settings what the internal names of your Start Time and End Time are? It might be possible that those are Start_x0020_Time & End_x0020_Time.

     

    If that is the case we need to change the expression to reflect the correct field names.

  • Community Power Platform Member Profile Picture
    on at

    Ushi_0-1631115553183.png

     

    i took a look at the list that does the vacation flow and found this and then took a look at the exact list on SharePoint. 

     

    Ushi_1-1631115707308.png

     

     

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard