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 / Update Sharepoint List...
Power Automate
Answered

Update Sharepoint List including column formatting

(0) ShareShare
ReportReport
Posted on by 126

I have a flow that creates an event in a shared calendar for a holiday request based on having this MS form approved:

Screenshot 2023-03-01 at 16.48.56.png

 

 

I need to add an action to update the circled sharepoint list column below (Holiday Days Taken), totalling the answers to number 4 above (i.e. total working days off), which I would do by an 'update item' action.

 

Screenshot 2023-03-01 at 16.44.04.png

 

Question 1

How do I make sure every time someone submits a form, the column is added to not overridden? 

 

For example - 

User submits form & requests 3 days off. Update item action populates 'Holiday Days Taken' column as 3.

A month later, the same user submits form again and requests 7 days off. How can I get the formula to continually add the number instead of populating the 'Holiday Days Taken' column as 7. It should show as 10 (3 + 7)

 

Question 2

How do write the flow so that the system knows what person to allocate this to on the SP list?  Presumably its a condition that matches the email address of the person submitting the form with the 'employee email' column. How do I do this?

Categories:
I have the same question (0)
  • wskinnermctc Profile Picture
    6,519 Moderator on at

    To start thinking about this, you should put Question 2 first, and then you can answer Question 1.

     

    So when someone submits a form, you need to Get Items from the SharePoint list and filter it based on the email address or unique identifier of the employee.


    If the employee is not already in the list, then it will add a row with values from the form response.

     

    If the employee is already in the list then you will have to add the values in an expression that will be something like add({FormResponseHoliday},{GetItemsHolidaysTaken) in the Update Item.

     

    You will have to show a screenshot of your flow to get a more specific answer. 

  • Jtaylor95 Profile Picture
    126 on at

    I havent built the flow yet as I wasnt sure how best to do so.

     

    The employee will always be on the list if that helps but any guidance on the specifics of building the flow would be much appreciated!

     

    thanks

  • Verified answer
    v-liwei-msft Profile Picture
    on at

    Hi @Jtaylor95 

     

    I have made a test for your reference:

    1.

    vliweimsft_6-1677737741676.png

     

     

    2.

    vliweimsft_1-1677737360397.png

    3.

    vliweimsft_2-1677737410127.png

    4.

    vliweimsft_3-1677737465337.png

     

    vliweimsft_4-1677737640172.png

     

    vliweimsft_5-1677737678311.png

     

    add(items('Apply_to_each')?['HolidayDaysTaken'],int(outputs('Get_response_details')?['body/rfddadb25e35549c3942beae9724b9d34']))

     

     

    Best Regards,

    Levi

     

     

  • Jtaylor95 Profile Picture
    126 on at

    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

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard