web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    RE: How do you call a FLOW/Power Automate with Ribbon Workbench and passing the user details to Flow

    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
    RE: How do you call a FLOW/Power Automate with Ribbon Workbench and passing the user details to Flow

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

  • Community Member Profile Picture
    on at
    RE: How do you call a FLOW/Power Automate with Ribbon Workbench and passing the user details to Flow

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
#ManoVerse Profile Picture

#ManoVerse 105

#2
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 74 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans