Exhibit
{
"definition": {
"triggers": {
"manual": {
"type": "Request",
"kind": "Http",
"inputs": {
"schema": {
"properties": {
"email": {
"type": "string"
}
},
"required": [
"email"
]
}
}
}
},
"actions": {
"Send_approval_email": {
"type": "ApiConnection",
"inputs": {
"host": {
"connectionName": "shared_office365",
"operationId": "SendEmail",
"apiId": "/providers/Microsoft.PowerApps/apis/shared_office365"
},
"parameters": {
"email/To": "@triggerBody()?['email']",
"email/Subject": "Approval Required",
"email/Body": "Please approve this request."
},
"authentication": "@parameters('$authentication')"
},
"runAfter": {}
},
"Condition": {
"type": "If",
"expression": {
"equals": [
"@body('Send_approval_email')?['status']",
"Succeeded"
]
},
"actions": {
"Update_item": {
"type": "ApiConnection",
"inputs": {
"host": {
"connectionName": "shared_sharepointonline",
"operationId": "UpdateItem",
"apiId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline"
},
"parameters": {
"dataset": "https://contoso.sharepoint.com/sites/marketing",
"table": "Approvals",
"id": 1,
"item/Status": "Approved"
}
},
"runAfter": {}
}
},
"else": {
"actions": {
"Send_rejection_email": {
"type": "ApiConnection",
"inputs": {
"host": {
"connectionName": "shared_office365",
"operationId": "SendEmail",
"apiId": "/providers/Microsoft.PowerApps/apis/shared_office365"
},
"parameters": {
"email/To": "requestor@contoso.com",
"email/Subject": "Request Rejected",
"email/Body": "Your request has been rejected."
}
},
"runAfter": {}
}
}
}
}
}
}
}- A
The 'email/To' parameter is missing the recipient's email.
Why wrong: The email address is provided via trigger body.
- B
The condition expression is incorrectly formatted.
Why wrong: The condition expression is syntactically correct.
- C
The flow uses 'Send an email' instead of a proper approval action.
The 'Send an email' action only sends an email; it does not capture the recipient's response. An approval action like 'Start and wait for an approval' is required.
- D
The 'body' function should be 'outputs' instead.
Why wrong: The 'body' function is valid.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.