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)

Server URL Server-Side

(0) ShareShare
ReportReport
Posted on by

Hi Guys,

A have a little problem. Do you know how to obtain all the parts to construct a Record URL from a plugin?

I need to send an e-mail from a plugin, and in the body I must have the hyperlink to access that record. I know how to construct that URL, but I'm missing the server part ("servername/OrganizationName"). The OrganizationName I can get it from the IPluginExecutionContext, but I can't find the Server Name.

If anyone has an idea, I will be grateful.

Thanks for your time

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Gopalan Bhuvanesh Profile Picture
    11,401 on at

    Hi

    You would have to use a Configuration custom entity to store these values (as it would change for different environments). In your plugin you have to obtain this value by querying this Configuration custom entity.

    Refer the following as well (for alternative suggestions):

    community.dynamics.com/.../241299

    community.dynamics.com/.../168259

    social.microsoft.com/.../obtaining-crm-url-within-plugin

  • Community Member Profile Picture
    on at

    Hello, and thank you for your time.

    I am developing this for OnPremise CRM, so the 3rd link help me very much. That is because I didn't need to create 1 more entity and explain to the client why we need it.

    If the CRM was Online, the only solution, I think will be with a "Setup" entity.

    Thank you very much

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