cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
oappdev
Advocate V
Advocate V

character '/' is not allowed in the names.

Hello Power Automate Community,

 

Is there an Expression to convert / to underscores.

 

I need to save the file in this format FL_03_10_2021_JohnDoe.pdf

 

l' m using File System connector to save the file to share drive.

 

Capture.PNG

 Character.PNG

 

 

 

As always, thank you so much!

1 ACCEPTED SOLUTION

Accepted Solutions

Hey Mate, I assume the "Date of Service" variable is the problem.

 

Add a Compose action and add the formula below -

 

replace(<Date of Service>,'/','_')
 
In the Create action pass the output of the Compose action.
 
CFernandes_0-1618429896128.png

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

View solution in original post

3 REPLIES 3
CFernandes
Super User III
Super User III

Hey @oappdev ,

 

You can use 

 

replace(outputs('Compose'),'/','_')
 
CFernandes_0-1618427161756.png

 

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

Thank you so much @CFernandes  How do I apply the expression so it convert to underscores for all Create files. My apologize, I should have given more details. 

 

Capture1.PNG

 

As always, Thank you in advance.

Hey Mate, I assume the "Date of Service" variable is the problem.

 

Add a Compose action and add the formula below -

 

replace(<Date of Service>,'/','_')
 
In the Create action pass the output of the Compose action.
 
CFernandes_0-1618429896128.png

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

View solution in original post

Helpful resources

Announcements
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

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

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (68,051)