'Remove Hypen in GUID Power Automate
"c2ecc88d-88c8-4096-912c-d6f2e2b138ce"
How do I remove the hypen in the above GUID?
Here is what I tried below:
replace(variables('GUID String'),/-/g,"")
concat(substring(variables('StringGuid'),0,8),'-',substring(variables('StringGuid'),8,4),'-',subs
Solution 1:[1]
You need to include the global flag:
var str = "c2ecc88d-88c8-4096-912c-d6f2e2b138ce"; //Guid String
var newStr = str.replace(/-/g, "");
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | HarshithaVeeramalla-MT |