PL-900 • Practice Test 40
Free PL-900 practice test — 15 questions with explanations. Set 40. No signup required.
Refer to the exhibit. A flow is triggered when an email with 'Invoice' in the subject arrives, and it saves the first attachment to a SharePoint document library. However, the flow fails with an error 'InvalidTemplate'. What is the most likely cause?
{
"definition": {
"triggers": {
"When_a_new_email_arrives": {
"type": "ApiConnection",
"inputs": {
"host": {
"connectionName": "shared_office365",
"operationId": "OnNewEmail",
"apiId": "/providers/Microsoft.PowerApps/apis/shared_office365"
},
"parameters": {
"folderId": "Inbox",
"importance": "Any",
"fetchOnlyWithAttachment": false,
"includeAttachments": true,
"subjectFilter": "Invoice"
}
}
}
},
"actions": {
"Create_file": {
"type": "ApiConnection",
"inputs": {
"host": {
"connectionName": "shared_sharepointonline",
"operationId": "CreateFile",
"apiId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline"
},
"parameters": {
"dataset": "https://contoso.sharepoint.com/sites/finance",
"folderPath": "/Shared Documents/Invoices",
"name": "@triggerOutputs()?['body/attachments'][0]['name']",
"fileContent": "@triggerOutputs()?['body/attachments'][0]['contentBytes']"
}
},
"runAfter": {}
}
}
}
}