Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Ribbon workbench URL Command Action add Username

(0) ShareShare
ReportReport
Posted on by

I put together an URL in Ribbon Workbench 2016 with URL Command Action and various parameters. I would also add the current CRM user with the URL. How can I insert the Username?

Thanks in advance ...

*This post is locked for comments

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 Moderator on at
    RE: Ribbon workbench URL Command Action add Username

    Hi,

    As mentioned above, it would be easier to call a JavaScript and then from there open the URL with username.

    Hope this helps.

  • Suggested answer
    sandeepstw Profile Picture
    sandeepstw 4,601 on at
    RE: Ribbon workbench URL Command Action add Username

    Hi,

    I will suggest to call js on URL Command Action and use script to do dynamics functionality.

  • Suggested answer
    Pawar Pravin  Profile Picture
    Pawar Pravin 5,231 on at
    RE: Ribbon workbench URL Command Action add Username

    Hi Heko,

    You can use Xrm.Page.context.getUserName(); function.

    Regards,

    Pravin

  • RE: Ribbon workbench URL Command Action add Username

    Hello Pravin,

    but the string parameter expects only a string. I want to read out the current user and then give it with the URL.
    Is there a way to call the Xrm.Page.context.getUserName () function in the URL Command Action?

    Best regards,

    Heike

  • Suggested answer
    Pawar Pravin  Profile Picture
    Pawar Pravin 5,231 on at
    RE: Ribbon workbench URL Command Action add Username

    Hi Heko ,

    You can use string parameter in ribbon workbench to pass current user name to the action.

    Hope this help you.... !

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans