cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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:

My SharePoint listMy 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)?

 

 

When a event i createdWhen a event i created

Thank you very much! 😉

 

4 REPLIES 4
Highlighted

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.

Highlighted
Community Support
Community Support

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.
Highlighted
Frequent Visitor

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
Community Support

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

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Users online (10,914)