cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ShaneITAutomate
Post Patron
Post Patron

Extract Multiple ID's out of Email Body

Hi,

 

Im trying to remove all irrelevant data and extract multiple IDs out of an email body to use the IDs to change a sharepoint list.

 

The emails recieved will contain multiple instances of CrateID:RZCS9999 (and various others i.e CrateID:RZCS9998)

 

currently however the filter array creates the following from the emails

 

[
  "RZCS9809 ",
  "RZCS9999 ",
  "RZCS9998 "
]
 
I cannot get rid of the spaces at the end of the ID's and i can't figure out how to use each individual?
 
(The following is my composes)

 

RemoveEmptyLines =

replace(outputs('HTMLInsideCompose'),outputs('EmptyLines'),'')

 

TrimCompose

substring(outputs('RemoveEmptyLines'),0,sub(length(outputs('RemoveEmptyLines')),1))
 
AllOnANewLine
split(outputs('RemoveEmptyLines'),'CrateID:')
 
And the Filter Array is supposed to seperate

1.png2.png

 

 

0 REPLIES 0

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (1,919)