
Announcements
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](###) ###-####)
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](###) ###-####")