cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jja
Post Prodigy
Post Prodigy

bad gateway 502 create new folder

Hi

I have an action that creates a folder based on title name. I noticed if title ends with . then in action create folder i get 502 badgateway error.

Can you help me to create this logic.

before creating folder i want to check if title ends with dot if it ends with dot i want to take all characters up to dot and then create that folder based on the title till dot

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @jja,

 

To take all characters up to dot is complicated, how about use replace() function to remove dot if title ends with ".":Screenshot 2020-10-08 162905.jpg

 

If it isn't you want, you could refer to this structure, sub end of the title until it doesn't end with a dot:

substring(variables('Title'),0,add(length(variables('Title')),-1))

Screenshot 2020-10-08 163524.jpg

 

Best Regards,
Community Support Team _ Lin Tu
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

1 REPLY 1
v-litu-msft
Community Support
Community Support

Hi @jja,

 

To take all characters up to dot is complicated, how about use replace() function to remove dot if title ends with ".":Screenshot 2020-10-08 162905.jpg

 

If it isn't you want, you could refer to this structure, sub end of the title until it doesn't end with a dot:

substring(variables('Title'),0,add(length(variables('Title')),-1))

Screenshot 2020-10-08 163524.jpg

 

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

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

Users online (1,572)