Microsoft.Crm.CrmException: Webresource content size is too big

Hi Everyone,

Today, I have received an error saying “Webresource content is too big” when I was importing PCF solution to one of our instances.

The fix is simple, the solution size which I was importing was more than 5 MB and the max file size limit for attachments was 5,120 (5 MB) in the instance. Updating the value to 10 MB (10,240) fixed the issue.

Settings –> Administration –>System Settings–> Email tab

Hope this helps.

Happy 365’ing

Calculate the Age from Date of Birth in JavaScript

Hi Everyone,

Today I have got an requirement to calculate the Age based on Date of Birth.

Here is the way to get the Age using JavaScript.

function getAge(dateString) {
    // var dateString = '12/02/1988'
    var today = new Date();
    var birthDate = new Date(dateString);
    var age = today.getFullYear() - birthDate.getFullYear();
    var m = today.getMonth() - birthDate.getMonth();
    // Logically we cannot include the current year if the birthday has not completed in the current year. 
    // The below condition checks the same and removes the current year from Age.
    if (m < 0 || (m === 0 && today.getDate() < birthDate.getDate())) {
    return age;

Hope this helps.

Happy Coding