HI,
I plan to use FLOW to query the oldest unassigned case and assign that case to the current user. I am thinking of creating a custom button (via Ribbon Workbench) and when clicked will activate the FLOW.
How can I use Ribbon Workbench to activate the Flow. Also how will the power automate know who is the current user is?
Hi,
Have you tried to call the API like this:
var userSettings = Xrm.Utility.getGlobalContext().userSettings;
userSettings.userId;
userSettings.userName;
If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.
Best Regards,
Frank Gong
Thank you but how do I get the user details from Ribbon Workbench?
Hi,
You need to add a button, and then add some JavaScript methods to the button:
You need to use Http trigger in flow in order to accept user parameters:
The user's parameters can be obtained using this api:
You only need to send http request to flow in JavaScript:
XMLHttpRequest.response - Web APIs | MDN (mozilla.org)
If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.
Best Regards,
Frank Gong
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,151 Super User 2024 Season 2
Martin Dráb 229,963 Most Valuable Professional
nmaenpaa 101,156