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 / Difference in the synt...
Power Apps
Answered

Difference in the syntax of the code i am using in my Power Apps and with the demonstrations on YouTube!

(0) ShareShare
ReportReport
Posted on by 1,066

Dear Experts,

 

I have a problem. I have noticed that the syntax of the code i am using is different from the people who gives demonstrations on youtube. For example:

 

Someone shows me this code: ["DisplayName","JobTitle"] But when i do it i get an error.

 

the same with this code, this is my code:

'Office365-gebruikers'.SearchUser({searchTerm:PeoplePicker.SearchText})

 

and the code of a user on youtube:

Office365Users.SearchUser({searchTerm:PeoplePicker.SearchTex)}

 

How can my code is diffirent than the people from Youtube?

 

Gr. P

 

Categories:
  • Geeks_D Profile Picture
    1,169 on at

    Could you brief what u are trying to search for in App from Office 365 users ?

  • CU16021406-1 Profile Picture
    1,066 on at

    I am trying to get the manager from a user that is selected in the combobox called PeoplePicker.

    In the youtube is the code demonstrated like: office365users.ManagersV2(user().Email)

    and i do not get further than this: 'Office365-gebruikers'.ManagerV2( ?????

    I do not know what to put here. And why is my code diffirent then the users on youtube?

  • Geeks_D Profile Picture
    1,169 on at

    This PowerFx should work for the process you want 

    I am guessing your People Picker is also connected to Office365 Connector 

    Office365Users.Manager(PeoplePicker.Selected.Id)

  • Verified answer
    Geeks_D Profile Picture
    1,169 on at

    Hi 
    Sorry guess this syntax will work 

    Office365Users.ManagerV2(PeoplePicker.Selected.Id).displayName

  • timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    Hi @PeKi72 

    If you're using Power Apps in Dutch, the syntax for your first example would look like this:

     ["DisplayName"; "JobTitle"] 

    Could you give this a try first to see if it works?



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 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard