PL-200 · Question #323
You are creating a cloud flow for an automation targeting Dataverse. When a new account is created in Dataverse, the name of the account must be updated based on the following logic: - If the…
The correct answer is A. if(equals(triggerOutputs()?['body/accountcategorycode'), 1), concat('Standard | '. The correct formula must satisfy two requirements: use the proper Power Automate expression syntax for accessing trigger outputs, and compare against the value 1 (Preferred Customer) as the primary condition. In Power Automate cloud flows triggered by Dataverse, the correct…
Question
Options
- Aif(equals(triggerOutputs()?['body/accountcategorycode'), 1), concat('Standard | ',
- Bif(equals(triggerOutputs()?['body/accountcategorycode'), 2), concat('Standard ',
- Cif(equals(outputs('trigger')?['body/accountcategorycode'], 1), concat('Standard | ',
- Dif(equalsfoutputs('trigger')body/accountcategorycode'], 2), concat('Standard | ',
How the community answered
(33 responses)- A73% (24)
- B3% (1)
- C9% (3)
- D15% (5)
Explanation
The correct formula must satisfy two requirements: use the proper Power Automate expression syntax for accessing trigger outputs, and compare against the value 1 (Preferred Customer) as the primary condition. In Power Automate cloud flows triggered by Dataverse, the correct function to access trigger body fields is triggerOutputs()?['body/fieldname'] - NOT outputs('trigger')?['body/fieldname']. This eliminates choices C and D, which use incorrect syntax. Between A and B, the logic dictates checking for value 1 first (Preferred Customer → prepend 'Preferred | '), with the else branch handling value 2 or null (Standard → prepend 'Standard | '). Choice B compares against 2 instead of 1, which reverses the logic incorrectly. Choice A uses the correct triggerOutputs() function and checks for equality with 1, making the if-true branch handle the Preferred Customer case and the if-false branch (truncated in the choices) handle the Standard/null case.
Topics
Community Discussion
No community discussion yet for this question.