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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Updating Office 365 pr...
Power Apps
Answered

Updating Office 365 profile 'About me' when text input includes &&

(0) ShareShare
ReportReport
Posted on by 20

Hi folks, I'm configuring the Onboarding Tasks canvas app for my team at the moment, and I'm struggling with one particular screen which updates the user's About Me info on their O365 Delve profile.  The user writes their bio in a text input field, and when they click a button to 'Save changes' it triggers the Office365Users.UpdateMyProfile function.

 

My problem is that if the user includes an ampersand in their text input, the string passed to O365 is truncated at that character.  Example:

User enters: "I live with my wife & kids in London"

What shows up in Delve: "I live with my wife "

 

If I update my About Me info directly through Delve, not through the canvas app, it does recognise the & and works as expected.  Therefore I assume this must be to do with how the connector passes the string from Power Apps to O365 - maybe it sees it as an operand, even thought it's in a text input?

 

For reference this is the predefined function in the canvas app:

 

Set(AboutMeText, BuildEmployeeProfileAboutMe.Text);
Office365Users.UpdateMyProfile(aboutMe: AboutMeText);

 

Where BuildEmployeeProfileAboutMe is the text input field.

 

Any suggestions please?

Categories:
  • Verified answer
    SBax Profile Picture
    1,348 on at

    You are correct, it's seeing the & as an operand

     

    Try using a substitute to switch the & with &amp before passing it to O365

     

    I haven't tried this for the scenario you mentioned, but I have had to do this with a string passed to flow from a canvas app, and it worked there

     

    Can't guarantee it will work, but certainly worth a try 

     

    Syntax is found here 

  • AlexBoyce Profile Picture
    20 on at

    Thanks SBax.  Substitute seems to be the way to go.  "&amp" still didn't seem to work (unless I did something wrong!), but I've told it to substitute "and" instead, and that's working.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard