knowledgecenter-breadcrum

Knowledge Center

27 Apr, 2022

How to Retrieve Entity Main Form Details using JavaScript

Posted on 27 Apr, 2022 by Admin, Posted in Dynamics 365 Dataverse Power Platform Dynamics-365 Sales

How to Retrieve Entity Main Form Details using JavaScript Blogs

How to Retrieve Entity Main Form Details using JavaScript

In this blog, we will see how we can retrieve the details about “Entity Main” Form.

Details such as

  • No of attributes present on Form.
  • Section
  • Tabs
  • Id

We can use below method to retrieve details about entity main form.

Xrm.Utility.getEntityDefaultMainFormDescriptor(entityName, formId);

Here,

Note: If we don’t specify the FormId then above method will select Default Form of specified entity.

For More details please use below link:

https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-utility/getentitymainformdescriptor

Example:

We have written below sample code to get the details about the account Main Form.

Result:

Comment

This is a Required Field

Loading

Recent Updates

Blogs
07 Sep, 2023

Optimizing Storage with SubscriptionTrackingDeletedObject Cleanup

What is SubscriptionTrackingDeletedObject? The "SubscriptionTrackingDeletedObject" table is linked to the "DeletionService," which handles two types of cleanup: organization-wide and record-specific.…

READ MORE
Blogs
05 Sep, 2023

How to create real-time customer journeys in Dynamics 365 Marketing

Introduction: This blog will show how to create real-time customer journeys in Dynamics 365 Marketing. Customer journeys can be either…

READ MORE
Blogs
30 Aug, 2023

D365 CUSTOMER SERVICE: CUSTOMER 360 COMPONENT

Introduction: In Dynamics 365 (D365) Customer Service, the 'Customer 360' Component provides a comprehensive view of information and enables users…

READ MORE