Hello!
I'm trying to split a string starting from the "?" and take everything from the left of the "?". So far, I'm failing at this...!
This would be an example of the string:
/sites/06-000600/06-000621_QOT.xlsx?d=w0b85deee74804b82b1375724a792fc9d
And I want to use this part of it in my next step:
/sites/06-000600/06-000621_QOT.xlsx
Right now I am using the "compose" action, I've tried: split('Current_Link_to_File_Name','?'), then also tried to input it as: split("Current_Link_to_File_Name","?") but it reverts back to the single quotations. On trying to run this as a test, I get the error that it cannot contain any control characters.
Thanks for the help!
Jennie
Solved! Go to Solution.
Hey @jster24
I just tried this using the first and split functions and am able to achieve the desired output:
Expression:
first(split(outputs('Compose'),'?'))
You need to appropriately reference the input string attribute for this to work. In mine have the Outputs('Compose') to refer to the output from the previous compose action.
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!
Hey @jster24
I just tried this using the first and split functions and am able to achieve the desired output:
Expression:
first(split(outputs('Compose'),'?'))
You need to appropriately reference the input string attribute for this to work. In mine have the Outputs('Compose') to refer to the output from the previous compose action.
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!
Thank you, @yashag2255!
This was the solution, as well as making sure Flow wasn't adding syntax errors with extra parenthesis as I was adjusting the expression.
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
45 | |
42 | |
37 | |
36 | |
23 |
User | Count |
---|---|
41 | |
31 | |
28 | |
28 | |
28 |