
Announcements
Please help me to read this value
Ex.
My email's body is
| Click link here |
The value of "here" is hyperlink "mailto:test@gmail.com?code=11101-503" I would like to get value of code. The value is 11101-503.
Pls tell me how to use Power Automate to get that value in href value.
Thank you so much for helping me.
Hi@surachar,
Based on the issue that you mentioned, do you want to extract data from a href body?
Generally, we could get the body of the email through Office365Outlook.GetEmails which is in HTML text format.
I think you should get the hyperlink in the email body.
Add a Label and set the Text as below:
Match(
First(
Office365Outlook.GetEmails(
{
folderPath: "Inbox",
fetchOnlyUnread: false
}
)
).Body, /*I assume that the target message is the first message in the inbox*/
"\d{5}\-\d{3}"
).FullMatch
You could check the Match
Regards,
Qi