Hi ,
I will have to retrieve user details (user roles and Bu) from another instance using plugin code. Can someone knows how I can retrieve it ? Any help would be appreciated.
Note:
I have created one custom entity with user lookup and on select of user lookup I will have to populate user roles in single of text field
Hi,
You Can achieve your requirement using Power Automate.
Use Common Data service(Legacy) connector to connect to another instance, fetch required details then connect to source instance to populate the details.
Please mark my answer verified if this is helpful!
Regards,
Bipin Kumar
Follow my Blog: xrmdynamicscrm.wordpress.com/
Hi Pravin,
You can call Dynamics 365 WebAPI from the plugin and retrieve the roles filtered by the user. (using $select and $filter attributes). For calling the API, you should initially register the CRM application in Azure.
Refer the link below for more details.
https://debajmecrm.com/solved-call-web-api-from-within-a-plugin-in-dynamics-365-online/
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,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156