cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MattsChr
Level: Powered On

Get data from a table in outlook event into a SharePoint list

Hi there I am buliding a flow to automate the following procedure:

 

when a event is created in outlook and a rescource is booked. its generate a element in a SharePoint list called "Forplejning - Test" contaning the subject, start time from the event - and some custom columns.

 

flow - when a new event is created.JPG

 

 

And the element is created like this:

SharePoint list.JPGMy SharePoint list

My question is then. How do i get the values from the table below (Kildevand: 10 & sodavand: 20) in my flow, and into my list (in the custom columns called: Kildevand and Sodavand)?

 

 

Outlook - event.JPGWhen a event i created

Thank you very much! Smiley Wink

 

4 REPLIES 4
Super User
Super User

Re: Get data from a table in outlook event into a SharePoint list

You would have to collect the body of the email and do textual splits. Not always an easy task.

Community Support Team
Community Support Team

Re: Get data from a table in outlook event into a SharePoint list

Hi @MattsChr,

 

Do you want to extract Antal value of each Vare and save them back to SharePoint list?

Please take the following configuration for a reference.

Add a trigger When a new event is created.

Add the action HTML to text to convert the body to text.

Add compose2 use the following code to get the starting position of Kidevand:

indexOf(body('Html_to_text'),'Kildevand:')

 Add Compose3 to get the starting position of Antal value of each vare:

add(outputs('Compose_2'),10)

 Add Compose4, get starting position of Sodavand:

indexOf(body('Html_to_text'),'Sodavand:')

 Add Compose5, get Antal value of Kidevand:

substring(body('Html_to_text'),outputs('Compose_3'),sub(outputs('Compose_4'),outputs('Compose_3')))

 Add Compose6 to return Antal value of Sodavand:

substring(body('Html_to_text'),add(outputs('Compose_4'),9),2)

 1.PNG

Hope it could be your reference.

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
MattsChr
Level: Powered On

Re: Get data from a table in outlook event into a SharePoint list

hi @v-yamao-msft

 

Thank you very much for your reply! actually last night I managed to use the following code and get the values right: 

 

substring(body('Html_to_text'),add(lastIndexOf(body('Html_to_text'),'Kildevand: '), XX),X)

 

Highlighted
Community Support Team
Community Support Team

Re: Get data from a table in outlook event into a SharePoint list

Hi @MattsChr,

 

Thanks for updating.

I am glad to hear that you have figured out a solution.

 

Best regards,

Mabel

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

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 49 members 4,484 guests
Please welcome our newest community members: