web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

How do you call a FLOW/Power Automate with Ribbon Workbench and passing the user details to Flow

(0) ShareShare
ReportReport
Posted on by

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? 

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

    You need to add a button, and then add some JavaScript methods to the button:

    Add JavaScript to existing button (Ribbon WorkBench 2016) - Microsoft Dynamics CRM Forum Community Forum

    You need to use Http trigger in flow in order to accept user parameters:

    pastedimage1629255177579v1.png

    The user's parameters can be obtained using this api:

    getGlobalContext.userSettings (Client API reference) in model-driven apps - Power Apps | Microsoft Docs

    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

  • Community Member Profile Picture
    on at

    Thank you but how do I get the user details from Ribbon Workbench?

  • Community Member Profile Picture
    on at

    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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 55

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans