cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Brenda_VD
New Member

I want to build a flow that saves an email attachment (created via word template) on SharePoint.

We use the invoices entity to sent the invoice (debit or creditnote) to our customers.

Invoices are created via a Word template and sent as attachment.

I want to save these attachments on a SharePoint location (or one drive), but the flow blocks on 'file name' contains 'debetnote' - it seems I cannot put 'debetnote' there. Any help?

 

Brenda_VD_0-1603090685438.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

@Brenda_VD 

Can you try the below?

Mira_Ghaly_0-1603093652288.png

Expression is as below:

indexOf('credit note',variables('filename'))

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

View solution in original post

6 REPLIES 6
Mira_Ghaly
Dual Super User II
Dual Super User II

@Brenda_VD 

What is the error the flow is giving from history and can you please add a complete screenshot of your flow?

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

Unable to process template language expressions for action 'Voorwaarde' at line '1' and column '19113': 'The template language function 'contains' expects its first argument 'collection' to be a dictionary (object), an array or a string. The provided value is of type 'Null'.'.

 

this is the error, I think it means I cannot put a simple text in this field: 

Brenda_VD_0-1603093051301.png

I wanted to indicate 'file name' contains the word 'creditnote'.

 

@Brenda_VD 

Can you try the below?

Mira_Ghaly_0-1603093652288.png

Expression is as below:

indexOf('credit note',variables('filename'))

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

View solution in original post

Great! It works so far...

 

Still have an error on the location to save the attachment.

Do you know if it's possible to let them save the attachment on a  one-drive or SharePoint folder?

@Brenda_VD

Yes of course you can save to sharepoint what is the error u are getting now? 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

Hi @Brenda_VD  ,

 

Have your issue been solved according to @Mira_Ghaly  'solution?

If yes, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

 

Best Regards,

Alice

 

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

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Kudoed Authors
Users online (4,028)