cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jgarciac
Helper II
Helper II

mail to sharepoint

hello, your help please, it is necessary to build a flow that when an email arrives, update a sharepoint column as follows...

 

mail:

ID: 123

Item: Laptop

state : approved

 

list sharepoint:

ID      mail        Laptop       fono

122  pending pending   pending

123  pending approved pending

124  pending pending   pending

 

1 ACCEPTED SOLUTION

Accepted Solutions


@jgarciac wrote:

but I don't want to create a new item, I want to update an existing one field


You can use "Update item" instead. I guess the ID displayed on the email body is the item Id you need to update it, right?

¡Ánimo!



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

8 REPLIES 8
abm
Super User III
Super User III

Hi @jgarciac 

 

Not sure your question is detailed enough. 

 

Is the below information is in your email body text?

 

mail:

ID: 123

Item: Laptop

state : approved



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials
efialttes
Super User III
Super User III

Hi
Did you explore WDL functions?
You can use split() using the email body as input, and whatever substring as a separator
https://docs.microsoft.com/es-es/azure/logic-apps/workflow-definition-language-functions-reference#s...
There are several threads in this community explaining this technique, for example:
https://powerusers.microsoft.com/t5/Building-Flows/Split-Body-of-Email-grab-text-before/td-p/80610
...or:
https://powerusers.microsoft.com/t5/Building-Flows/Extract-text-from-Body-of-an-email-in-Flow/td-p/5...
Hope this helps


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



yes, that is the information that would arrive in the body mail

The problem is that my sharepoint list has more than one column, as I say in which ID and Column should save it

abm
Super User III
Super User III

Hi @jgarciac 

 

You need to use Split using enter key to get each line items. To get each line items you need another split using ':' (colon) to get the relevant value. Once all values are extracted then you need to use Create Item SharePoint Flow Action to create SharePoint list items.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

but I don't want to create a new item, I want to update an existing one field

v-bacao-msft
Community Support
Community Support

 

Hi @jgarciac ,

 

Could you share the example of the email body so that we could provide you with the appropriate expression to extract the data you need?

You can refer to the following similar thread to extract the data in the email body:

https://powerusers.microsoft.com/t5/Building-Flows/Extracting-text-from-email/td-p/334919

 

Best Regards,

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


@jgarciac wrote:

but I don't want to create a new item, I want to update an existing one field


You can use "Update item" instead. I guess the ID displayed on the email body is the item Id you need to update it, right?

¡Ánimo!



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (26,881)