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

Notifications

Announcements

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 57 Super User 2026 Season 1

#2
Eugen Podkorytov Profile Picture

Eugen Podkorytov 26

#3
CU07021359-0 Profile Picture

CU07021359-0 23 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans