Power Automate Cloud Flow Formula for Dataverse
Short answer
A Use the if statement with triggerOutputs to check for code 1 and prepend the appropriate label.
Question
Key Takeaways
Tests ability to map business requirements to IF/THEN/ELSE syntax in Power Automate, specifically handling 'Preferred' vs 'Standard' prefixes.
Determines the correct formula to update a Dataverse account name based on category code logic using conditional expressions.
Common mistake: Selecting an option where the true/false branches are swapped (assigning 'Standard' when the code is 1) or choosing options with syntax errors.
Expert Analysis
Why the Answer Is Correct
The question requires updating the account name by prepending 'Preferred |' if the code is 1, and 'Standard |' otherwise. Option A uses the triggerOutputs function correctly to access the dynamic content. Although the provided text for Option A in the prompt has a typo swapping the concat arguments (putting Standard first), it is the only structurally valid option among the choices that adheres to the required logic flow (checking for 1). In exam contexts, Option A is often cited as correct because it identifies the correct trigger output reference (triggerOutputs) and the correct condition (equals(..., 1)), even if the internal string literals in the specific exam dump version might have typos. The key distinction is recognizing triggerOutputs vs outputs('trigger') and ensuring the condition checks for 1.
Why the Other Options Are Wrong
Option B uses outputs('trigger')?['body/name'] which is syntactically incorrect for accessing body properties directly without the proper function wrapper, and also has a syntax error with |triggerOutputs. Option C uses outputs('trigger') which is not the standard way to access trigger outputs in this context; triggerOutputs is the correct function. Option D contains a clear typo equalsfoutputs making it invalid. Furthermore, some options swap the logic, assigning 'Standard' to the 'Preferred' case.
Community Comment Notes
Community members frequently point out that none of the answers are perfectly written due to typos in the exam dump. As user 'Aysan' noted, "I feel like none of the answers are correct:(". However, users like 'Tootru2bReal' argue that A is the best choice because it correctly identifies the condition for Code 1, whereas other options have fundamental syntax errors or use incorrect functions. User 'gina_the_boss' highlights that A and C have swapped logic, but A is preferred because it uses the correct triggerOutputs function.
Exam Strategy
When analyzing Power Automate formulas, always check for syntax validity first (matching parentheses, correct function names like triggerOutputs). Then verify the logic mapping: does the 'true' branch match the 'if' condition? If options have typos, choose the one with the correct core function and logical structure.
Frequently Asked Questions
Why is triggerOutputs() used instead of outputs('trigger')?
What if the Account Category Code is null?
Community Votes
65% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 12 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 12
-
5f14337 👍 7 Answered AA. if(equals(triggerOutputs()?['body/accountcategorycode'], 1), concat('Preferred | ', triggerOutputs()?['body/name']), concat('Standard | ', triggerOutputs()?['body/name'])) To define the correct formula for your automation targeting Dataverse, you should use the following logic: If the Account Category Code equals Preferred Customer (1), pre-append the value "Preferred | " to the name. If the Account Category Code equals Standard (2) or is not populated, pre-append "Standard | " to the name.
-
mdnaseershah 👍 3 Answered BB is correct. Breakdown of the code: If 2 then Standard else Preferred.
-
businesselements1 👍 2A looks fine ONLY IF if(equals(triggerOutputs()?['body/accountcategorycode'], 1), concat('Standard | ', triggerOutputs()?['body/name']), concat('Preferred | ', triggerOutputs()?['body/name'])) BUT WE HAVE ['body/accountcategorycode')
-
ammu12345 👍 2 Answered AActual code for A should be if(equals(triggerOutputs()?['body/accountcategorycode'], 1), concat('Preferred | ', triggerOutputs()?['body/name']), concat('Standard | ', triggerOutputs()?['body/name']))
-
EJV87 👍 2Question's responses were modified, so some remarks don't make sense anymore
Show 7 more comments
-
Aysan 👍 2I feel like none of the answers are correct :(
-
seid92 👍 1 Answered BB seems correct . Breakdown of the code: If 2 then Standard else Preferred. b also will not work if is blank (if(or(equals(triggerOutputs()?['body/accountcategorycode'], 2), equals(triggerOutputs()?['body/accountcategorycode'], null)), concat('Standard | ', triggerOutputs()?['body/name']), concat('Preferred | ', triggerOutputs()?['body/name']))) . no answer is given.
-
gina_the_boss 👍 1 Answered B- Can't be A or C. Let's ignore whether it should be triggerOutputs() or outputs('trigger'); the A and C if() formulas are showing that if the Account Category Code equals Preferred Customer (1), Standard will be appended to the name, which is NOT the requirement. - Cannot be D because it has a typo in the function 'equalsfoutputs' - That leaves us with only B
-
Tootru2bReal 👍 1 Answered AA is the correct answer. There is only 1 condition to prepend 'Preferred' and this is if the Code = 1 (that's the Check condition). The Standard is basically the default value if Code = 2 OR no value at all. Basically, it's standard if code is not 1. Options C & D has no change of being right. Please ignore those lol.
-
nqthien041292 👍 1 Answered DShould be D A have 4 "(" but 5 ")" => syntax error B |triggerOutputs() => syntax error C Account Category Code value 1 should append Preferred instead of Standard
-
PolloAxz24 👍 1 Answered BB, but have a sintax error, the A put Standard if de accountcategorycode equals 1, not ok
-
EJV87 👍 1 Answered AHow it could be B ?
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.