In this blog we will see how to retrieve string or characters from string using substring and take method
When we want to retrieve character/string from starting index then will use take() method, else will use substring()
Let say we want to retrieve first 5 character from string.
Eg. – string is Power Automate
We will demonstrate this with both the cases.
- Using Substring
Here we are retrieving first 5 characters from string i.e. Power
Expression used –
substring(‘Power Automate’,0,5)
Output –
2. Using take()
Expression used to retrieve string – take(‘Power Automate’,5)
Output –
Hope this helps!