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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

customerid on new custom entity

(0) ShareShare
ReportReport
Posted on by 350

I know customerid is a special type of lookup with Opportunity. How do I create another customerid lookup with an custom entity (e.g. job) and map to opportunity customerid? I know how to do this for account or contact lookup, but not customer lookup. Any suggestion is appreciated. Thanks.

P.

*This post is locked for comments

I have the same question (0)
  • Andrew Zimmer Profile Picture
    340 on at

    Having a field that maps to a customer in a custom entity is not supported.  You have a couple options to get around it.  Some are more desirable than others.

    • Create two fields on your custom entity, one for contact and one for account.  In Javascript you can handle logic to ensure that only one is specified. 
    • Option 2:  To map the field to another entity you would have to create a varchar field on the other entity and set the field in javascript or in plugin.  It won't be of a lot of use to you unless you want it there simply for data purposes.  You couldn't display it on the form since it is just a GUID in string.
    •  Another options, unsupported of course, is to follow this post and create a field that mimicks the customer lookup.  http://billoncrmtech.blogspot.com/2009/02/client-side-scripting-customer-fields.html.  I haven't implemented it but it looks to make for the best user experience.

    -Andrew

  • P Profile Picture
    350 on at

    Thank you, Andrew.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans