I am trying to automate the naming of a document as it is uploaded into SharePoint using the filename. I've solved everthing I need except for the Title of the document. The filename comes in the format of FA-38596-01_EmailNewWelcomeLetter_20190425 where the elements I need are split by the "_" character. What I need help with is the second element (EmailNewWelcomeLetter). Is it possible using Flow to enter a space between each captialized word? This element changes depending on the type of document.
Solved! Go to Solution.
Hi @NGuill
Note: This is not the most efficient ways of doing this but it works.
Hi @NGuill
Note: This is not the most efficient ways of doing this but it works.
Hi @NGuill ,
Could you provide a style that specifically describes the effect you want to render?
If you want to use "_" as a separator and get the second element, you can refer to the following expression:
If you want to replace "_" with a space, please refer to the following expression:
replace(variables('Title'),'_',' ')
Best Regards,
Thanks @yashag2255, for your help. I agree this is not an elegant way, but it gets the job done. I'd prefer a regex type of solution though.
Thanks @v-bacao-msft, but I had already stated that I had achieved splitting the text by "_". I needed to insert a space before each capital letter in the second element. Meaning I need the result to be "Email New Welcome Letter".
Hey @NGuill
Yep. Regex is something that is a much needed feature. There have been some ideas created to include regex as a feature here
You can create a new one or UpVote the already created ones so that it reaches the product team.
Hope this Helps!
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!
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.
User | Count |
---|---|
91 | |
57 | |
41 | |
39 | |
38 |
User | Count |
---|---|
82 | |
69 | |
57 | |
55 | |
42 |