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 :
Customer experience | Sales, Customer Insights,...
Answered

Get attributes from Associated View

(0) ShareShare
ReportReport
Posted on by 20
Hello,
 
Is there a way to get the field attributes of the selected Records in a /Subgrid/ that is not a real subgrid, but Associated View? 
I have a button in the Ribbon of the View /Associated View Invoice Line Details/ that should show only if all selected Lines have field /Correction/ = false. 
 
my JS manages to show me the Name and Guid of the View, but the GetControl does not work => Debugger:  formContext.GetControl is not a function
 
vView = /{59AB5957-0408-465A-83F8-A134E7B1F3A5}/  /Invoice Line Detail Associated View/
 
is there a way to retrieve the attributes in a similar way as for subgrids?   
 
like formContext.getControl(arg).getGrid().getRows().getAll()[n].data.entity.attributes.getAll();
 
 
thank you for any advise
Ullli
I have the same question (0)
  • Verified answer
    Dengliang Li Profile Picture
    Microsoft Employee on at
    Hi,
     
    It is afraid that this cannot be implemented.
     
    There is no api for getting the associated view in the official documentation.
     
    I found a similar question.
    javascript - dynamics crm get name of subgrid on associated view - Stack Overflow
    However, based on the answer to this question, I was unable to find the corresponding IFrame control to get the associated view.
     
    Best Regards,
    Dengliang Li
     

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 > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 131 Super User 2026 Season 1

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 46 Most Valuable Professional

#3
NeerajPawar Profile Picture

NeerajPawar 41

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans