cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

When a new email arrives in a shared mailbox - error InvalidTemplate

Flow configuration1.png

I've been testing a very simple but it gives me a error saving the file on SharePoint.

Error Flow.png

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: When a new email arrives in a shared mailbox - error InvalidTemplate

Hi @Bestebreurtje,

 

You could set "Has Attachment" and "Include Attachments" of the trigger to Yes.

If you want to use the attachments included in the email, "Include Attachments" must be set to Yes so that the returned content will contain Attachments.

Image reference:

29.PNG

Please take a try again.

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Highlighted
Resident Rockstar
Resident Rockstar

Re: When a new email arrives in a shared mailbox - error InvalidTemplate

Hi there.

Below is a successful Flow run that triggerred when a new email arrived in a shared mailbox.

The flow then got the email's attachment (I added if file is format .pdf in my test) and created a file in a SP document library.

Capture-029.png

 Here is the completed Flow and it's expressions.

 
Capture-031.png

Capture-032.png

Condition Expresssion below:

@contains(items('Apply_to_each_attachment')?['Name'], '.pdf')

Please test this and let us know how you got on.

If this Flow is helpful to you please mark with thumbs up.


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


Highlighted
Resident Rockstar
Resident Rockstar

Re: When a new email arrives in a shared mailbox - error InvalidTemplate

On the Final Create File, the file content filed displays "Attachment name".

It should infact display "Attachments Content"as below

items('Apply_to_each_attachment')?['Name']

I find this works better with new email webhook also but try this and see how you get on.

 


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


Highlighted
Community Support
Community Support

Re: When a new email arrives in a shared mailbox - error InvalidTemplate

Hi @Bestebreurtje,

 

You could set "Has Attachment" and "Include Attachments" of the trigger to Yes.

If you want to use the attachments included in the email, "Include Attachments" must be set to Yes so that the returned content will contain Attachments.

Image reference:

29.PNG

Please take a try again.

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Helper I
Helper I

Re: When a new email arrives in a shared mailbox - error InvalidTemplate

Hi Barry,

 

Thanks,  setting has attachments to "Yes" was resolving my problem!

 

Greetings,

 

Jeroen Bestebreurtje

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Users online (5,891)