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

Saving email to FTP

I'm trying to create a simple Flow where I save an email onto an FTP when it gets flagged.

 

It works when I use MessageID as the File name, but the file name is long and cumbersome.

 

When I try to use Subject as the File name I get an error. I also tried setting a variable FileName and assigning the Subject to the variable, but got the same error.

 

Can anyone help please?

 

Thanks.

 

WORKING FLOW:

working.PNG

 

OUTPUT IS LONG AND CUMBERSOME:

 

Long File Name.PNG

 

FLOW USING SUBJECT AND RESULTING ERROR:

 

File Name Subject doesn't work.PNG

Subject error.PNG

FLOW USING FILENAME VARIABLE AND RESULTING ERROR:

 

FileName variable.PNGSubject Fail message.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
v-alzhan-msft
Community Support
Community Support

Hi @gm355 ,

 

What is the Subject of the email?

Does the Subject have some special synbol in it?

Please take a try to name the file with a special string to see if the flow could work.

 

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.

 

 

 

View solution in original post

2 REPLIES 2
v-alzhan-msft
Community Support
Community Support

Hi @gm355 ,

 

What is the Subject of the email?

Does the Subject have some special synbol in it?

Please take a try to name the file with a special string to see if the flow could work.

 

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.

 

 

 

The subject of the email follows this format:

 

example: EXAMPLE, INC. DEAL 45MM 20160907 - Example

 

So it has semi-colon, comma, period and dash.

 

I ran some tests and it seems like it's the semi-colon that is causing the problem (how random)

 

So I need some code to remove the semi-colon.

 

Thanks for you help!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (4,118)