Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Office365 Phone Number

(0) ShareShare
ReportReport
Posted on by 4,714 Super User 2025 Season 1

Does the Office365 phone, by default, come to Power Apps formatted as -
(###) ###-####

If no, will the following work to force the number to appear in this format in the Text Input (DataCardValue) field of a 'New' form - 
(###) ###-####

Code for Text Input in 'New' form DataCardValue field -
Text(Value(Office365Users.UserProfile(User().Email.TelephoneNumber),"[$-en-US](###) ###-####)

Categories:
  • Verified answer
    TheRobRush Profile Picture
    11,121 Super User 2025 Season 1 on at
    Re: Office365 Phone Number

    to keep the +1 if your company uses them,

     Text(Value(Concat(
     MatchAll(
     Office365Users.UserProfile(User().Email).TelephoneNumber,
     Match.Digit
     ),
     FullMatch
     )), "[$-en-US]+# (###) ###-####")

     

    to never include the +1

     Text(Value(Right(Concat(
     MatchAll(
     Office365Users.UserProfile(User().Email).TelephoneNumber,
     Match.Digit
     ),
     FullMatch
     ),10)), "[$-en-US](###) ###-####")

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard