cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Huggs
New Member

Using part of a received emails Subject field within the "add a row" to an Excel file stored in Sharepoint

Hi all,

 

I'm trying to create a flow that will add a row to a table of an Excel file stored in Sharepoint, most of which I've figured out, but I also need to use some of the Subject and add this to a column within the Excel table.

 

The table looks like this;

Table.png

 
 
 
 

 I want to be able to take the name in brackets at the end of the Subject and add this to the User column. The wording in the Subject will always be one of the two Subjects that you see here. I was hoping I could add an expression to "add a row" in the flow that would do this but I don't know how and am having trouble finding a way to do it. The flow is shown below;

Flow.jpg

 

Any help gratefully received!

Thanks

2 ACCEPTED SOLUTIONS

Accepted Solutions
efialttes
Super User III
Super User III

Hi!
So my suggestion is to add a condition to evaluate if Subject contains either 'The Demo System has been shutdown' or 'The Demo System has been restarted and is now ready to use'
Now on the false branch you can add a terminate action block
9nce we get the right condition working we can even move it to trigger settings for optimization
Will be back in some minutes with a suggestion to extranct info inside brackets
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!



View solution in original post

Now let's see how to take the name in brackets at the end of the Subject
Assuming the only brakets in your target email Subjects are the ones delimiting username, I would suggest the following expression:

replace(last(split(triggerBody()?['Subject'],'(')),')','')
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!



View solution in original post

4 REPLIES 4
efialttes
Super User III
Super User III

Hi!
So my suggestion is to add a condition to evaluate if Subject contains either 'The Demo System has been shutdown' or 'The Demo System has been restarted and is now ready to use'
Now on the false branch you can add a terminate action block
9nce we get the right condition working we can even move it to trigger settings for optimization
Will be back in some minutes with a suggestion to extranct info inside brackets
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!



View solution in original post

Now let's see how to take the name in brackets at the end of the Subject
Assuming the only brakets in your target email Subjects are the ones delimiting username, I would suggest the following expression:

replace(last(split(triggerBody()?['Subject'],'(')),')','')
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!



View solution in original post

That's worked perfectly, thank you so much for taking the time to look at this!

Great news, then!

Glad to help, Thanx for your kindness!



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!



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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (18,317)