Hello,
Wondering if anyone could advise please.
I’m attempting to create an ‘if’ expression in the body of one of my flows that handles data from Forms. I need the flow to only include an answer (in an email that is sent to the help desk), only if another question is answered ‘yes’, for example:
Forms question 1: Do you wish to remote into your PC?
Forms question 2 (will only show if question 1 is answered with ‘yes’): Enter the host name of your computer
I need the flow to only add the hostname (from question 2) (into the email that is sent) if question 1 is answered with ‘yes’.
For testing purposes, I have tried the following expression for the first part (to check if the answer is ‘yes’ or ‘no’):
if(triggerBody()?['rcee21e8ca796498da50d37db60e7bd92'],'rdp required','rdp not required')
but I see the following error when testing:
InvalidTemplate. Unable to process template language expressions in action 'Send_an_email_(V2)' inputs at line '1' and column '2843': 'The template language function 'if' expects its first parameter to be of type boolean. The provided value is of type 'String'. Please see https://aka.ms/logicexpressions#if for usage details.'.
My idea is that the hostname (from question 2) will only be stated in the email if question 1 is answers with ‘yes’.
Any help would be appreciated.
Regards.
hi @Kazashimo what you nedd is add a correct condition see this examples
If you want to compare with a custom value use equals.
Proud to be a Flownaut!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
74 | |
22 | |
18 | |
17 | |
13 |
User | Count |
---|---|
126 | |
38 | |
29 | |
28 | |
26 |