Hi all,
I have a flow, that is sending an approval. Depending on the outcome, several mails are being sent to the secretary and the requestor.
The user is able to add an Attachment prior to the approval via an PowerApp.
I have added the option to display the attachment in the approval mail. I found this solution on several posts. It is working in the approval only.
Now i also want to add that same attachment to my mails i send to the diffrent people mentioned prior.
That doesnt seem to work for some reason.
When Adding the varAttachment in my "send mail" command after the outcome, i get an error message.
This error message then appears after succesful approval.
My theory is, that the for each loop "fill attachment content" is blocking further user of the attachment.
It is not possible to exclude the for each loop when getting the attachment content.
I already tried the compose command and creating attachment files on a seperate sharepoint list.
Do you have any more ideas?
Sincerely
Grandepaci
Solved! Go to Solution.
Hello @grandepaci ,
the format for attachments is different in the email and in the approval task. In the approval task it is:
{
"Name": <DisplayName>,
"content": <AttachmentContent or FileContent>
}
but for the email it needs:
{
"Name": <DisplayName>,
"ContentBytes": <AttachmentContent>
}
Hello @grandepaci ,
the format for attachments is different in the email and in the approval task. In the approval task it is:
{
"Name": <DisplayName>,
"content": <AttachmentContent or FileContent>
}
but for the email it needs:
{
"Name": <DisplayName>,
"ContentBytes": <AttachmentContent>
}
User | Count |
---|---|
101 | |
36 | |
29 | |
25 | |
16 |
User | Count |
---|---|
133 | |
54 | |
53 | |
37 | |
26 |