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 / Leave Requests - After...
Power Automate
Unanswered

Leave Requests - After Approval the event is then added to Outlook

(0) ShareShare
ReportReport
Posted on by

I am creating a simple system for Approvals of Leave.

 

When a form is submitted on Sharepoint it then goes through the Approval process. If it is then approved, I would like the event to then be added to a Shared Outlook Calendar. 

 

I managed to get it working for an event o be added to a calendar on Sharepoint but I cant seem to get it to work on the Outlook Calendar.

 

I think it is because of the date format.

 

When the request is submitted through the form n Sharepoint (Customerized By powerApps), the dates From and To is in dd/mm/yyyy format but the date needs to be in yyyy-mm-ddT00:00:00 Format. How do I create a formula to chnage the date format in the flow without changing the date format in the Sharepoint list? (Hope this makes sense)

 

So its the From and To columns in the below:

SLCLARKE_0-1641590084264.png

That needs a formula for it to appear in the correct format in the below - Start time and End Time in the create event part.

SLCLARKE_1-1641590187813.png

 

Thank you

 

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

    Hi @Anonymous ,

     

    You could try to use 

     

    formatDateTime(outputs('Get_item')?['body/From'],'yyyy-MM-ddTHH:mm:ss')
     
    and 
     

    formatDateTime(outputs('Get_item')?['body/To'],'yyyy-MM-ddTHH:mm:ss')

     

    vxiaochenmsft_0-1641783498438.png

     

    Best Regards,
    Wearsky
  • Community Power Platform Member Profile Picture
    on at

    I tried the formulas but it came up with the following error:

     

    Correct to include a valid reference to 'Get_item' for the input parameter(s) of action 'Create_event_(V4)'

  • v-xiaochen-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    It worked on my side.

    Please provide your flow screenshots.

     

    Best Regards,

    Wearsky

  • Community Power Platform Member Profile Picture
    on at

    SLCLARKE_0-1641976911498.pngSLCLARKE_1-1641976934871.png

    SLCLARKE_2-1641976978184.pngSLCLARKE_3-1641977017659.png

    Thank you

     

    So it is When a item is created - Start and Wait for approval - Condition - If Yes, apply to each - send email notification - update item and create event

  • Emeline1 Profile Picture
    4 on at

    Hello,

     

    I have the same problem as describe.

    Maybe someone has a solution ?

     

  • Emeline1 Profile Picture
    4 on at

    Hi

     

    Solution found. Just need to convert date. Here for start date. Do the same with end date. Before create a outlook event.

    Emeline1_0-1648204901595.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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard