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
Super User

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,853)