exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 4 question 7 discussion

Actual exam question from Microsoft's PL-400
Question #: 7
Topic #: 4
[All PL-400 Questions]

HOTSPOT -
A clothing store uses Power Apps apps to interact with customers. Customer data is stored in Microsoft Dataverse.
The store offers discounts for customers. You assign a group discount to all customers in a category. Applicable group discounts are added to any customer- specific discounts. Discount information is stored in the following columns:

If the total discount on an order exceeds 30 percent, a manager must approve the order before the order is fulfilled and delivered.
You need to create a flow that notifies managers when approvals are required.
How should you configure the flow trigger? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: store_totaldiscount -
If the total discount on an order exceeds 30 percent, a manager must approve the order before the order is fulfilled and delivered.
Box 2: @greater(add(triggerBody()..
When to use triggerBody() ? ג€" When you want to fetch attributes from the body of the trigger.
Incorrect Answers:
When to use triggerOutputs() ? ג€" Whenever you need to access anything from within the body as well as some info from the header as well.
Reference:
https://d365demystified.com/2020/09/06/using-triggerbody-triggeroutput-to-read-cds-trigger-metadata-attributes-in-a-flow-power-automate/

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
No_Doubt
Highly Voted 1 year, 10 months ago
Trigger condition: option 3 is the right answer If we say we want to use triggerBody(), the syntax should be: (@greater(add(triggerBody()?['store_personaldiscount'],triggerBody()?['store_groupdiscount']), 30)
upvoted 12 times
...
northstar88
Highly Voted 1 year, 12 months ago
The question did not explicitly specify how Total Discounts amount was calculated. Assuming it's Personal + Group discount, I think: Filtering Attribute is correct (store_totaldiscount) Trigger Condition should be number 3 (@greater(add(triggerOutputs()?['body/store_personaldiscount'],triggerOutputs()?['body/store_groupdiscount']), 30). "The reason this we write “body/RunAsSystemUserId” is because in the JSON structure of the complete Outputs of the CDS Connector, you’ll see that RunAsSystemUserId attribute lies inside body in the JSON. Whereas in terms of triggerBody() above, we are reading attributes from the “body” itself." https://d365demystified.com/2020/09/06/using-triggerbody-triggeroutput-to-read-cds-trigger-metadata-attributes-in-a-flow-power-automate/
upvoted 9 times
MarioM
1 year, 11 months ago
Correct - should be TriggerOutputs(), - as body is used in retrieving attribute path.
upvoted 7 times
...
...
Juan0414
Most Recent 5 days, 5 hours ago
C C (triggerBody can not include body again in the attribute to look for)
upvoted 1 times
...
dhanushkalk
3 months, 1 week ago
Trigger condition: Option 3
upvoted 1 times
...
At09
11 months, 2 weeks ago
Answer is C and C
upvoted 1 times
...
jkaur
1 year ago
should be :- c c
upvoted 1 times
...
DummyTest1
1 year, 2 months ago
Trigger condition should always be like triggerOutputs()?['body. So second answer is wrong
upvoted 1 times
...
Viju1989
1 year, 7 months ago
TriggerBody will use in Manual Flow and TriggerOutput will use in Automated flow so as I understand TriggerOutput coz while adding or modified of Discount column Automated Flow trigger (Replayed after tested in Flow)
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago