Hello experts,
following this guide
https://matthewdevaney.com/capture-a-signature-with-power-apps-pen-input-and-save-to-sharepoint/
I am unable to send the PenInput to my Power Automate Flow. Getting this error message in the Edge DevTools
{
"error": {
"code": "TriggerInputSchemaMismatch",
"message": "The input body for trigger 'manual' of type 'Request' did not match its schema definition. Error details: 'Required properties are missing from object: file.'."
}
}
This is the code I tried:
TabletTestAutomation.Run(
LabelLegalText.Text,
{
contentBytes: ImageSignature.Image,
name: "signature_" & Text(Now() & "yyyyMMddhhmmss" & ".jpg")
}
)
( ImageSignature Image uses this FX: PenInputSignatureCustomer.Image )
The PA Monitor does show this body:
"body": {
"text": "Beliebiger Rechtstext, den der Kunde unterschreiben muss. Beliebiger Rechtstext, den der Kunde unterschreiben muss. Beliebiger Rechtstext, den der Kunde unterschreiben muss."
}
The response message is the same like in the DevTools.
Can anyone explain why this is not working? I also tried to convert the PenInput directly. The PA compiler did not accept that code:
// Save PenInput as JSON variable
Set( PenVar, JSON ( PenInputSignatureCustomer.Image, JSONFormat.IncludeBinaryData ) );
// Extract to Base64 sequence
Set( PenInput64Bit, Mid(PenVar, 24, Len(PenVar) - 24 ) );
TabletTestAutomation.Run(
{
contentBytes: PenInput64Bit,
name: Concatenate("signature_", Text(Now(), "yyMMddhhmmss"), ".jpg")
},
LabelLegalText.Text
)
EDIT: That is how the Power Automate Flow Input looks like
