cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Prodigy
Post Prodigy

Include field value in if statment ins Approval Details?

Hi Folks -

 

I have gotten fantastic help on this thread (https://powerusers.microsoft.com/t5/Building-Flows/Can-you-use-if-statments-in-the-quot-Details-quot...) about how to capture an input. It's working great but I need to take it one step further!

 

My if statement in the "Details" section is as follows:

 

if(empty(outputs('PTPCheck')),'The following Partnership Association has been removed : ','Requested Partnership Association : ')

 

 

And it's working.  However, I would like to add the field value in the if statement because depending on the input (null or not) a different value should be used.

 

For instance, I want my if statement to look like this but not sure it's possible:

 

if(empty(outputs('PTPCheck')),'The following Partnership Association has been removed [Workflow_PartnershipID] : [Workflow_PartnershipID]','Requested Partnership Association : [PartnershipID]')

 

 

The strings in brackets are the fields that are set in my powerapps application and I need to displya their values as such. Is this possible? Attached is a screen shot for reference:

PowerAutomate1.png

 

 

Thanks!!

1 REPLY 1
Highlighted
Resolver II
Resolver II

Re: Include field value in if statment ins Approval Details?

@simms7400 

 

 Would "concat" help you and is what you expect ? 

if(empty(outputs('PTPCheck')),concat('The following Partnership Association has been removed ', variables('Workflow_PartnershipID'), ':' , variables('Workflow_PartnershipID') ), concat('Requested Partnership Association :', variables('Workflow_PartnershipID')))

 

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (9,004)