
Currently Im using powerautomate and I want to extract 'PUN' from follwing string.
how do I extract data with function of power automate..
WH_GGN-PUN-SER-AFS-
the format is ooo-ooo-ooo-ooo-
An expression using the split() function can extract the text. We can split at the '-' character.
The split() function returns an array of values:
We want "PUN" which is item 1 - based on the format xxxx-XXXX-xxx-... Numbering starts at 0 for array items:
Here is an example flow:
The following expression using the slit() function will extract the second block of text:
split(outputs('Compose'),'-')[1]
Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.