Hi
I have a requirement to retrieve all the users from Teams starting with "Kat" and display them in a dropdown. I am using web api to retrieve the same.
I made three get requests. one for teams(getting teamid's) staring with Kat in team entity. another for getting userid based on teamid from teammembership entity.
And another to get user name from userid we got before.
I need to know is there any way to perform this whole operation using one get request using $expand.Please suggest. Please throw some light if you seen you can optimize my web api calls mentioned above.
Thanks
Goutham
*This post is locked for comments
How can Crete API to Insert, Update and Delete in CRM 365
thank you.
Could you please share the solution.
Thanks Joe. That was helpful
Hi,
You could do a FetchXML web api call. Example here www.inogic.com/.../execute-fetchxml-using-web-api-in-dynamics-crm-2016
Joe
Hi All,
if any one has an idea if we can retrieve all the users of a particular team in single web api call, please share.
Thank you
Hi
Adding to extra point about expand.
The Expand option is used to retrieve related entity data as part of a request uri and for Web Api requests it only works when querying a single record.
Hi
I think it is not possible to get in single query
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156