Posts

Showing posts with the label Flow

IF function in Power Automate

Image
Many times, in Power automate we set a variable based on some condition and to achieve that, we use condition control action, but we can avoid using action and use If function instead. This blog will guide you on how you can use If function instead to using condition control action. Use Case: When an Account is created in D365 CE, Initialize the variable and set its value as description. If description is unavailable, then set value as NA. Steps: When an Account is created in D365 CE. Add a Compose action and enter if(equals(triggerOutputs()?['body/description'],null),'NA',triggerOutputs()?['body/description']) as expression in Input Field of connector. In above Step (2) it checks if description is null then set “NA” as output else set description as output. Initialize a variable of type string and set its value as Output of compose action. Create an Account and check if we get the desired result. Enjoy!