Hi,
I am trying to set up a flow to extract specific lines from the body of an email.
I currently want all information highlighted in red to point to specific columns within sharepoint:
Column 1:
Short description: Suspicious Domain Registration Identified:
EXAMPLE-Uk-Plc[.]com
Description:
Column 2:
Domain Registered:
* EXAMPLE-Uk-Plc[.]com (34.102.136.180, Geo-location: Missouri - Kansas
City)
Date of registration:
Currently I have tried to only extract the text for column 1 and have come up with the following:
Compose:
length(body('Html_to_text'))
Compose 2:
add(indexOf(body('Html_to_text'),'Short Description:'),18)
Compose 3:
indexOf(body('Html_to_text'),'Description')
Compose 4:
substring(body('Html_to_text'),outputs('Compose_2'),sub(outputs('Compose_3'),outputs('Compose_2')))
The I have the output rom compose 4 in the Column 1 option when creating an item in sharepoint.
I seem to be getting an error due to the length of the substring being too long and am unsure how to fix this. The whole email is quite lengthy so not sure if I'm breaking it down correctly and my end point isnt specific?
Any help would be appreciated and any more info needed please ask.
Thank you,
Devin