I want to extract information from the body of an email and populate fields in a SharePoint. An extract of the email is follows;
Details
------------------------------------------------------------
Account Number 99999999
Contact Name Mr A N Other
Email example@domain.com
Telephone 0123456789
Incident Reference XXXXX-XXXXX
I've solved the fixed length data but I'm having issues with the varaible length data like Email. The expression I am using is;
substring(body('Html_to_text'),add(lastIndexOf(body('Html_to_text'),'Email ', 6),X)
Where 'X' will be the length of the email address which is where I'm struggling to find a way to find the length of a string.
Any suggestions would be appreciated.
Thanks
Solved! Go to Solution.
Hi @mark-carlisle,
Would it be available to take use of the LastIndexof function here?
For example, if here you would like to get the Email length, then we could write the formula as this:
Sub( LastIndexOf(body('Html_to_text'), 'Telephone'), Add(LastIndexOf(body('Html_to_text'),'Email '), 6) )
Regards,
Michael
Hi @mark-carlisle,
Would it be available to take use of the LastIndexof function here?
For example, if here you would like to get the Email length, then we could write the formula as this:
Sub( LastIndexOf(body('Html_to_text'), 'Telephone'), Add(LastIndexOf(body('Html_to_text'),'Email '), 6) )
Regards,
Michael
That worked great.
Thanks
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
41 | |
40 | |
37 | |
34 | |
30 |
User | Count |
---|---|
47 | |
36 | |
35 | |
24 | |
24 |