In my flow, I am sending the DisplayName and email from a power app. I want to include the user first name in the body as a salutation. How can I extract just the first name from DisplayName? Is there a way to do a substring, or Right function?
Thanks for the information
Brad
Solved! Go to Solution.
Here is an example that should help.
In my test, I am getting the display name from a variable called varDisplayName.
I an using the substring() expression - I am saying that I want part of a string and I want to start at position 0.
I am also saying that I want a certain number of characters - I am looking for the first space and retrieving the position of that space using the indexof() expression. The position of that space is the number of characters I want.
If you need additional help, please post here.
If this solves your issue, please mark your question as Solved.
Scott
OK - try this
Here is an example that should help.
In my test, I am getting the display name from a variable called varDisplayName.
I an using the substring() expression - I am saying that I want part of a string and I want to start at position 0.
I am also saying that I want a certain number of characters - I am looking for the first space and retrieving the position of that space using the indexof() expression. The position of that space is the number of characters I want.
If you need additional help, please post here.
If this solves your issue, please mark your question as Solved.
Scott
Thanks, exactly what I needed
I thought that is what I need. Our Display Name from the adfs is LastName, FirstName and this substring formula returns the LastName only. So I would need everything after the comma.
OK - try this
Yep, that did work, except I changed "first" to "last" as I want the first name in the salutation. Thank you for your help
This very close to what I am endeavouring to for the email salutation. I used
substring(variables('FatherFirstLast'),0,indexOf(variables('FatherFirstLast'),' ')
however, get a "Definition contains invalid parameters." message when I try to save the flow.
So far, I have not been able to sort out why I am getting the error.
User | Count |
---|---|
38 | |
36 | |
17 | |
14 | |
12 |
User | Count |
---|---|
26 | |
20 | |
19 | |
13 | |
13 |