web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Customised copy button-CRM

(2) ShareShare
ReportReport
Posted on by 22
I needed to fix an issue with a customised button in the ribbon in my Dynamics CRM environment. It is for copy functionality and is running through a javascript.
The functionality is failing for a lookup field in the entity, which was recently added. From my last question's response, I understood that lookup fields need to be handled in a different way because they are actually combination of three separate values.
However, I tried to follow the script posted in the link below which was for a similar requirement:
https://blog.infobitsoft.com/2020/04/how-to-get-and-set-lookup-field-using.html

But, unfortunately this didn't seem to work, when I added this code in the existing script, may be I did something wrong, I'm not sure. But when I added the script, the button became unresponsive. Is there any other way I can fix this? I had one more small question:
Xrm.Page.data.entity.attributes.get("to").getValue()- does the "to" part needs to be replaced with schema name of the field?
 
Well, I tried it, but that didn't work either. Just needed some clarification on that as well.
 
I have the same question (0)

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 142 Super User 2026 Season 1

#2
Nagaraju_Matta Profile Picture

Nagaraju_Matta 128

#3
11manish Profile Picture

11manish 119

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans