Using flow I'm composing an html based Outlook email.
I need to add a nicely formed URL based on an IF condition in the body of the email
The url I've formed in a "Compose Action" - <a href="@{body('Get_item')?['DocumentPortal']}">Doc Portal</a>
I've written the expression - if(not(empty(body('Get_item')?['DocumentPortal'])),'Please see the following link:','no')
My problem happens when I try to insert my Compose in the TRUE side of my if statement. What is the proper format? Can I even do what I envision?
I'm grateful for your time.
Solved! Go to Solution.
Hi @Anonymous,
Do you want to insert a link into the email body based if it is not empty?
I assume that there is a Hyperlink column in the list.
I have made the following test, please check it for a reference.
In the Compose action, configure the URL likes below.
In the send an email, insert the following code:
if(not(empty(triggerBody()?['DocumentPortal'])),concat('Please see the following link:',outputs('Compose')),'No')
Hope it could be your reference.
Best regards,
Mabel
Hi @Anonymous,
Do you want to insert a link into the email body based if it is not empty?
I assume that there is a Hyperlink column in the list.
I have made the following test, please check it for a reference.
In the Compose action, configure the URL likes below.
In the send an email, insert the following code:
if(not(empty(triggerBody()?['DocumentPortal'])),concat('Please see the following link:',outputs('Compose')),'No')
Hope it could be your reference.
Best regards,
Mabel
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.
User | Count |
---|---|
23 | |
23 | |
23 | |
22 | |
17 |
User | Count |
---|---|
57 | |
39 | |
37 | |
29 | |
26 |