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

Reading an email containing changing amount of info

Hi,

 

I have an email that I get from a booking system that I need to log into sharepoint.

No problem when its one entry, but when there are multiple people it sends them in one email. So I will get 

 

 

Name: Tony Test
Email: tony.test@test.com
Mobile Number: 41546974
Job Title: Super Dude
Company: This is a test please do not process
Dietary Requirements:
Street Address: 112 Test St
Suburb: DULWICH HILL
Postcode: 2203
State: NSW

Name: Geoff Test
Email: geoff.test@test.com
Mobile Number: 61293473666
Job Title: Frog Man
Company: This is a test please do not process
Dietary Requirements: Food
Street Address: 2 Hand Parade
Suburb: SYDNEY
Postcode: 2000
State: NSW

Name: Jarrod Test
Email: rtest@test.com
Mobile Number: 61414236544
Job Title: Space Man
Company: NASA
Dietary Requirements: Frogs
Street Address: 123 Fake St
Suburb: ROOTY HILL
Postcode: 4000
State: NSW

I'm fairly new to this but I have used my flow to convert it from HTML to Text, then using Compose actions to get the items from the first entry, but how would I go about doing this for the other items with the consideration it could be one, two, three or many more entries in an email?

 

Any help or pointers to some examples would be much appreciated.

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @TonyB,

 

Please refer to these steps:

Step 1: Initialize a variable named Tab by clicking twice the "Enter" button.

Step 2: Add an Apply to each action, then split the variable  Email by the variable Tab.

split(variables('Email'),variables('Tab'))

Annotation 2019-08-29 181313.png

Run results:

 

Annotation 2019-08-29 182054.png

Please have a try, I hope it can help you.

 

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.

 

View solution in original post

2 REPLIES 2
v-litu-msft
Community Support
Community Support

Hi @TonyB,

 

Please refer to these steps:

Step 1: Initialize a variable named Tab by clicking twice the "Enter" button.

Step 2: Add an Apply to each action, then split the variable  Email by the variable Tab.

split(variables('Email'),variables('Tab'))

Annotation 2019-08-29 181313.png

Run results:

 

Annotation 2019-08-29 182054.png

Please have a try, I hope it can help you.

 

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.

 

View solution in original post

Thanks! That helped me get where I needed. Using this, some varibiables to select from the array got me fixed. 

 

Thanks!

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,039)