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 / how i make Sub two Num...
Power Automate
Answered

how i make Sub two Number By Flow

(0) ShareShare
ReportReport
Posted on by 34

hello 

i want make flow to sub 2 numbers  when employee leave request in Leave Request sharepoint list

i make static number 21 days in Request Sharepoint List 


approve4.JPGapprove3.JPG 

if Day less or = Days Start Approve 

approve.JPGapprove1.JPGapprove2.JPGMy Question 

i want when Leave Request is Approved in sharepoint Leave Request Flow Sub 21 Days in  Request sharepoint List and update item in Request Sharepoint List To the new value 

if employee need 2 days sub 2 days from 21 days and update to 19 days 

how i make this by Microsoft Flow 

Categories:
I have the same question (0)
  • Verified answer
    v-yuazh-msft Profile Picture
    on at

    Hi @mohamed,

     

    What is the type of the Day, Days, and Email column in your sharepoint list?

     

    I have made a test on my side to create the lists as yours, and the Day, Days column is of type number, the Email column is of type Person or Group don't allow multiple selections.

    And I couldn't create a "Name" column in the lists, so I create a "Name " column in the lists.

     

    The Request list as screenshot below:

    Capture.PNG

     

    I have created a flow as below:

    Capture.PNG

    Capture.PNG

     

    The expression in the Days column as below:

    sub(items('Apply_to_each')?['Days'],triggerBody()?['Day'])

    When an item is created in the Leave request column as below:

    Capture.PNG

     

    If the Request is approved, the flow would run successfully as below:

    Capture.PNG

     

    The Request list would be updated as below:

    Capture.PNG

     

     

    Best regards,

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 339 Super User 2025 Season 2

#1
trice602 Profile Picture

trice602 339 Super User 2025 Season 2

#3
David_MA Profile Picture

David_MA 270 Super User 2025 Season 2

Last 30 days Overall leaderboard