if i have a string like this ["test@test1.com"] how to get the value only test@test1.com?
Solved! Go to Solution.
@tom_riha you don't even need to put it into an array variable. So you could just use an expression like:
first(outputs('string'))
Even without being in a array variable it will still get interpreted as an array.
Use the following. The substring starts after the second character (removing the [") and the Length-4 stops before the final two characters (removing the "])
substring(variables('target String'),2,sub(length(variables('target String')),4))
Hello @AdhamFH ,
the string has format of an array with a single object, so you could also store it into an array variable and then get the first object (on index 0) from that array. Or use 'Apply to each' if you expect there might be multiple strings, e.g. ["test@test1.com","test2@test1.com"...].
@tom_riha you don't even need to put it into an array variable. So you could just use an expression like:
first(outputs('string'))
Even without being in a array variable it will still get interpreted as an array.
Hello @Paulie78 ,
thank you for the tip, that seems to be the optimal solution. ๐
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 |
---|---|
89 | |
60 | |
42 | |
35 | |
32 |
User | Count |
---|---|
79 | |
67 | |
57 | |
49 | |
41 |