Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)
Answered

Virtual Entity with no text field

Posted on by 1,570

Hello,

I am testing creating a virtual entity but the entity has no text field. It contains primary key and lookups. 

I have tried leaving the new_name External field blank. But this does not work.

Can anyone tell me is this possible?

Thank you.

Tom

*This post is locked for comments

  • Verified answer
    David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: Virtual Entity with no text field

    I think it is necessary to have a name field, as the platform expects every entity to have a primary name field (there are exceptions, such as entities used in N:N relationships, but you can't make the virtual entity work this way), which is used in lookups to this entity. As far as I know, you'd need to provide a text field to map to the name field somehow (I'd suggest to a concatenation of the lookup fields, or it could be a string representation of the primary key) even if you never use it in CRM.

    If you're using the OData provider, and have control over the OData end, you could generate the text field there, or you could create a custom virtual entity data provider

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans