I have a string input which will contain email ids. There could be possibility of values like asb@xyz.com ;fdf@xyz.com;;sdsf@xyz.com
I want to get only email ids into an array. I was trying with split and then using foreach to check if empty value or not and then add to final array. Any quicker way possible?
Use this single Assign activity: yourString.Split({";"c}, StringSplitOptions.RemoveEmptyEntries)
This splits by semicolon and auto-removes empty entries from ;;
Result: String() array with only valid emails like {"asb@xyz.com", "fdf@xyz.com", "sdsf@xyz.com"}
No loops needed - ready for For Each or email activities!