How to extract URL link from email body using Azure Logic Apps
I have been trying to figure this one out for over last three weeks, and I asked/posted question to the Azure Logic Apps community, but I did not get the solution yet.
So, I am posting here again.
This is summary of my previous post.
Here was my first attempt by following/reading this post:
So, it appears my pipeline passed until 2nd step (Get emails (V3)), but when it hit the JavaScript Code area, it says "Cannot read property 'body' of undefined".
- I got a suggestion to try "var text = workflowContext.actions.Get_emails_(V3).outputsbody.
- When I tried that, I got an error saying "Get_emails_' referenced by 'inputs' in action 'Execute_JavaScript_Code' are not defined in the template.'"
- I got a next suggestion to use Regex code like this (on the bottom).
- Also, I got a suggestion to use "When a new email arrives (V3)" instead of "Get emails (V3)" for the second step.
But, I was not able to find "When a new email arrives (V3)" from my Azure Logic App options.
- I tried with the Regex code, and I got this error ('Cannot read property 'body' of undefined'):
How do I fix to error "Cannot read property 'body' of undefined"?
Thank you!