web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • Suggested answer
    Pawar Pravin  Profile Picture
    5,237 on at

    Hi Heko ,

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

    Hope this help you.... !

  • Community Member Profile Picture
    on at

    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
    5,237 on at

    Hi Heko,

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

    Regards,

    Pravin

  • Suggested answer
    sandeepstw Profile Picture
    4,601 on at

    Hi,

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

  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

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

    Hope this helps.

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans