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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Entity attribute size for CRM Online

(0) ShareShare
ReportReport
Posted on by

Hi,
 I am using SDK.Metadata.RetrieveAllEntities in my JavaScript when on load of an entity form to retrive the metadata for all the entities in my org. I want to have the sum of the size of attributes of the entity.

For example, the CRM attribute of type "Option Set" is stored as "Int" SQL server datatype and the size of the size of this datatype is 4 bytes. I want the sum of the size of the datatype of attributes of the entity in JavaScript for CRM Online org. 
Is there any way to achieve this?

*This post is locked for comments

I have the same question (0)
  • Mahendar Pal Profile Picture
    45,095 on at

    You could get this information from entity metadata and can setup predefined values for every datatype and calculate based on those values, but calculating this for all entity using java script could be long process, better to switch to custom report or some server side process.

    Thanks

  • Royal King Profile Picture
    27,686 on at

    As datatype and number of attributes not going to change until user adds new attribute to the entity. So how about keeping separate entity and adding the size whenever new attribute gets added to the entity using plugin/manually and showing this record in the form using quick view form. As size of entity not going to change record by record and it's same across all the records for that entity.

  • Community Member Profile Picture
    on at

    Thank you. Is there any way to calculate the size for the entity using JavaScript or plugin? I am having trouble while calculating the size for attribute of type, for example, EntityCollection, EntityReference, Image, etc. I there any way to get the same?

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans