web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Business phone with ge...
Power Automate
Unanswered

Business phone with get User profil V2 for a welcome mail

(0) ShareShare
ReportReport
Posted on by 173

Hello,

 

i have two issue with business phone in Get users profil

 

  1. How to convert the array to a single string, i have only one number by user,  i don't find for get only the number 04 72 10 30 29 without {" "} (example)
  2. Business_phone.JPG

     For my welcome mail i need to give if the phone number is a direct line or only interne line.

A Business phone number with 10 characters is a direct line, a Business phone with only 4 characters is only a interne line.

 

in my message i need to write :

 

Business Phone {Variable Directe or Interne} : 04 72 10 30 29 or only 20 39

 

How to create this variable for write direct or interne ? i think i can use if Business phone number > 4 characters, but how to do this ?

 

Need help please

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @GreguS,

     

    That Business Phones field can contain multiple phone numbers, that is why it is displayed as an array and not as regular text (string).

     

    You can retrieve the first phone number from that array by using an expression with the first function like below:

     

    first(outputs('Get_user_profile_(V2)')?['body/businessPhones'])

     

     

    firstphonenumber.png

     

    You can use a length function (and combine it with ifequals and concat functions) to check how many characters the phone number has and display if it is a direct line or an internal number. I am also using a replace to remove white spaces of the number (makes counting the numbers of the phone number a bit easier).

     

     

    if(equals(length(replace(first(outputs('Get_user_profile_(V2)')?['body/businessPhones']), ' ', '')), 4), concat('Business Phone Interne: ', first(outputs('Get_user_profile_(V2)')?['body/businessPhones'])), concat('Business Phone Direct: ', first(outputs('Get_user_profile_(V2)')?['body/businessPhones'])))

     

     

    direct_intern_if.png

  • GreguS Profile Picture
    173 on at

    Perfect, TYVM

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard