Hello,
I have a flow getting values from a SP list item. The values retrieved through a series of Apply to Each Controls get fed in to an email message. These values include email address, the 'DisplayName' of the individual receiving the email, the 'DisplayName' of the person sending it, and a URL link to a survey. I would like to extract the first name of the Display name of the individual receiving the email to make it more personal. Instead of "Dear John Doe," I would like the email to say: "Dear John,"
Tried using a compose action and typing in the following expression: first(split(body('Apply_to_each')?['DisplayName'],' ')) where 'Apply_to_each' is based on the location within the flow. The error received is the following:
"InvalidTemplate. Unable to process template language expressions in action 'Compose' inputs at line '1' and column '2656': 'The template language function 'split' expects its first parameter to be of type string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#split for usage details.'."
