I have a Flow which currently has the steps of SharePoint - On New Item Created -> Get User Profile (V2) -> Send an email (email contains values from both the SharePoint list item and the User Profile).
One thing that is missing is the telephoneNumber attribute. This would translate to the Phone number on the primary contact card in Outlook (or again, telephoneNumber attribute in Active Directory). How can I extract this? I see there is a Business Phones but I need to get that singular attribute, not an array of values... If Business Phones were my only option, how can I get that singular value as I do see it places my Send Email action into a foreach action.
The last thing I need to do is make sure that if the value of that phone number is not populated that the Flow does not fail and simply sends a blank value in the Send an email action. I'm not sure if it does this by default.
HI @trevorseward,
The following flow did it for me:
The business phone number in the email you can get with the following expression:
I cannot build it as you did in the screenshot. Whenever I try I got something like this in the "Apply to each" step:
And thank you for the tip with the coalesce...
I have used it like this (might be helpful):
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
66 | |
58 | |
29 | |
27 | |
25 |