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)

How to capture the record URL in a field?

(0) ShareShare
ReportReport
Posted on by

Hi, 

Is there a way to capture the lead/contact URL in a field on the respective lead/contact form?

*This post is locked for comments

I have the same question (0)
  • LMP Profile Picture
    680 on at

    Hi this is possible using a JavaScript.

    Create a function that gets the ID of the current record. Then concatenate that ID to the URL of your crm environment.

    After that put that concatenated URL to the field on your form.

    You can visit the sites below for more info.

    msdn.microsoft.com/.../gg334720.aspx

    msdn.microsoft.com/.../gg328483.aspx

  • Community Member Profile Picture
    on at

    Thanks, but i am not a programmer or coder, is there a way to do this without a Java script?

  • Verified answer
    PS Profile Picture
    23,577 on at

    Create a field of type single line of text with format = URL on lead/contact (I am calling it URL)

    Now create a real time workflow

    Trigger when>>record is created

    Entity>>Lead or Contact

    Steps/Actions>>Update Lead/Contact>>Set properties>> URL = Record Dynamic URL

    You can find it in the workflow designer right hand side selection/drop down

  • Community Member Profile Picture
    on at

    Thanks Prashant, this is what I was looking for. But is there a way to have this for all my existing leads/contacts apart from newly created ones?

  • Verified answer
    LMP Profile Picture
    680 on at

    Set the workflow as an on demand workflow. Then select the records you want to update > workflow > select the workflow you created.

  • Verified answer
    PS Profile Picture
    23,577 on at

    As LMP said, you can initially set the workflow as on demand and update your existing records.

    Later you can have it for new records only by unchecking the on-demand check box

  • Community Member Profile Picture
    on at

    Awesome, Thanks LMP

  • Community Member Profile Picture
    on at

    It worked, thanks

  • mosi Profile Picture
    5 on at

    wow

    tnx

  • ChaMere Profile Picture
    5 on at

    Hi Prashant!

    What would this look like in the current landscape?

    I am trying to replicate this, but obviously there are no more workflows and I can't find a way to get the desired result.

    Sorry if it's a dumb question, I am a total Power Platform novice.

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