web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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

 

I have the same question (0)
  • v-xiaochen-msft Profile Picture
    on at
    Re: Leave Requests - After Approval the event is then added to Outlook

    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
    Re: Leave Requests - After Approval the event is then added to Outlook

    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
    Re: Leave Requests - After Approval the event is then added to Outlook

    Hi @Anonymous ,

     

    It worked on my side.

    Please provide your flow screenshots.

     

    Best Regards,

    Wearsky

  • Community Power Platform Member Profile Picture
    on at
    Re: Leave Requests - After Approval the event is then added to Outlook

    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
    Re: Leave Requests - After Approval the event is then added to Outlook

    Hello,

     

    I have the same problem as describe.

    Maybe someone has a solution ?

     

  • Emeline1 Profile Picture
    4 on at
    Re: Leave Requests - After Approval the event is then added to Outlook

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 788 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 452 Moderator

#3
developerAJ Profile Picture

developerAJ 302

Last 30 days Overall leaderboard