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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create a Salesforce Ev...
Power Automate
Answered

Create a Salesforce Event when an event is created in Office 365 Outlook

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I'm trying to create an event in Salesforce when I create a meeting in my Outlook calendar. There doesn't seem to be an obvious variable to link the two connections in the template flow has provided.

 

We have the emails of 95% of the people we would log meetings with in salesforce in our database. Could we create a variable based on an sql lookup on the "Attendees" field in the Outlook meeting and return the Salesforce ID to push through with the even creation call?

 

Any help would be greatly appreciated. 

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

    Hi @Anonymous,

     

    Based on your description of the requirements, I created the following flow configuration:

     

    Step 1: when you send a meeting email, get it the content of Cc. Then add Get records action of Salesforce connector.

    Annotation 2019-06-10 164905.png

     

     

    Step 2: Add compose to process the CC email address, and store them in the EmailAddress Array variable.

    split(triggerBody()?['Cc'],';')

    Annotation 2019-06-10 165217.png

    Step 3: Set up two levels of traversal to find the corresponding Salesforce ID in the email address.

    -If yes, do the event creation.

    Annotation 2019-06-10 165313.png

    You can have a try with it. If there is any problem, please contact us.

     

    Best Regards,

    Community Support Team _ Lin Tu

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-lin-msft 

     

    I tried your way but I'm at the Microsoft Business Applications Summit and a couple of the Microsoft employees thought it would be better to go this route. I've gotten to the last step in my flow but for some reason the response from the Salesforce API is giving me an 18 digit Id number. I need the 15 digit Id number to post the event. Is there any way to trim the "Household/Business ID" field shown below?

     

    Capture.PNG

     

  • Verified answer
    v-lin-msft Profile Picture
    728 on at

    Yes, you can refer to this function to sub your ID from Salesforce ID: substring.

     

    Please have a try, and if you have any questions, please contact us.

     

    Best Regards,

    Community Support Team _ Lin Tu

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 875

#2
Valantis Profile Picture

Valantis 817

#3
Haque Profile Picture

Haque 481

Last 30 days Overall leaderboard