Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Unanswered

parentFormContext attribute in Primary Control is supported?

(0) ShareShare
ReportReport
Posted on by 10

There is one scenario in which the Entity data is shown in Subgrid which is inside the Quick View form.

On click of Custom New button, there is a requirement to populate the Parent record in lookup of Quick create on which this quick view is present.

So, on click of custom new button I am passing the parameters to quick create form in which the parent record reference is set on lookup field on quick create form.

I am using formContext.parentFormContext.data.entity.getEntityReference() to get the parent record reference. But I was not able to find any documentation regarding parentFormContext. Is it supported code or unsupported. Can anybody help me with that.

Code

pastedimage1660114905686v2.png

Attributes in Primary Control

pastedimage1660114622463v1.png

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans