This is a standarised acknowledgement email that I've currently created a flow to extract the key data from:
"
Notification (111R-11111111-01) is acknowledged.
Licence No.: XXXXXX
Licence Class: XXX
Licence Name: XXXX XXX XXX
Licence Expiry Date: 24/09/2028
A.B.N.: 11111111111
Site Details: 11 Xxxxx Street Xxxx XXX 1111, 11, Xxxx Street, Xxxx, XXX, 1111
Start Date of Work: 13/11/2023
Finish Date of Work: 18/12/2023
Click Here to view the notification details.
XXXXXX XXX may acknowledge requests to waive the 5 day notification period in exceptional circumstances where xxxx or xxxx xxxxxx x xxxxx xxxxx and xxxxx xxxx xx xxx xxxxxx or xxxxxx. xx xxxxxx xxxxxxx to confirm your reasons for requesting a waiver for xxxxxx xxxx xxxxxxx xxxx xxxx xx xxxxxxxx xxxxxxxxx xxxxxxxxxxxxxxxx xxxxxx xxxxxxxxx xx xxxxxxxx xxxxxx xxxxxxxxx. You will need to provide a separate email to xxxxxx@xxxxxx.com requesting the waiver with the reasoning and supporting documentation. You must xxx xxxx xxxx xxxx xxx xxxxxx has been accepted by XxxxxXxx XXX and advised by email.
Kind Regards
Xxxxxx xxx Xxxxxxx Xxxx
XxxxXxxx XXX
1111 111 111
I've created a flow that captures the notification ID and the dates by Using Html To Text and then creates an item in sharepoint. It seems though that it is unstable (sometimes it works, sometimes it doesn't). Would you be able to recommend a better solution? To grab the data I need from this I used compose with split:
split(body('Html_to_text'),outputs('EnterKey'))
split(split(outputs('SplitBodyText')[0], '(')[1], ')')[0]
split(outputs('SplitBodyText')[7], 'Site Details: ')[1]
split(outputs('Site_Address'), ',')[0]
split(outputs('SplitBodyText')[8], 'Start Date of Work: ')[1]
split(outputs('SplitBodyText')[9], 'Finish Date of Work: ')[1]
Is there a better way to do this? The flow is sometimes unstable - I've tried to correct it, it didn't work and then when I reset it to the original expressions it worked. Is this a bug? Is there a better way to do this?