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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (977)