Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Creating addCustomView's layoutXml using field from other entity

(0) ShareShare
ReportReport
Posted on by 115

Hi guys, i create addCustomView based on crm documentation. This scripts are running in entity : lnkt_scheduleplan

formContext.getControl(arg).addCustomView(viewId, entityName, viewDisplayName, fetchXml, layoutXml, isDefault)

This is my layoutXml:

var layoutXml = "" 
  ""   ""   ""   "" 
  ""   ""   "" 
  ""   ""  ""   "";

i need a little help to add this field lnkt_codename from entity lnkt_employee into layoutXml. Thanks for the help guys

  • Suggested answer
    Gilmeyer Profile Picture
    Gilmeyer on at
    RE: Creating addCustomView's layoutXml using field from other entity

    Hi , You can retrieve this field value using web api. Please refer to docs.microsoft.com/.../retrieverecord

  • David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: Creating addCustomView's layoutXml using field from other entity

    You need to reference the cell in the form <entity/alias>.<fieldname>, so it will be the following if you don't use an alias for the link-entity to lnkt_employee in your FetchXml. Or, if you use an alias for the link-entity to lnkt_employee , replace lnkt_employee with the alias

    <cell name='lnkt_employee.lnkt_codename' width='200' />

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,436 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans