Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Select only the required attributes from Graph API call

Hello all,

 

So inside the Web.Content I have this header where I try to specify only the required attributes :

 

Headers = [
     Authorization = "Bearer " & GetGsfAccessToken(AppSecret),
     ContentType = "application/json",
          Query = [
               select = {"businessPhones","displayName","department","givenName",
                              "jobTitle","mail","mobilePhone","officeLocation",
                              "preferredLanguage","surname","userPrincipalName","id"}
                        ]
]

 

Could you please help me with the correct way to do that?

 

Many thanks,

2 Replies

  • artemus's avatar
    artemus
    Microsoft Employee

    I haven't used graph much, but:

     

    Can you try using #"$select" instead of select?

    • Anonymous's avatar
      Anonymous
      Not applicable

      Unfortunatelly no change: