Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Unanswered

Resize the image Attribute in ms crm.

Posted on by 225

Hello Experts,

Please suggest me to resize the thumbnail in ms crm , as it is taking part of the image other part of the image it is cutting.while uploading images it should be compressed in edit image please any body suggest it is project scenario.

function load()

{

var dyanmicsImageUrl = window.parent.Xrm.Page.context.getClientUrl() + "/image/download.aspx?attribute=entityimage&entity=" + window.parent.Xrm.Page.data.entity.getEntityName() + "&id="+window.parent.Xrm.Page.data.entity.getId() + "&Timestamp="+ new Date().getTime();

document.getElementById("form_pic_image").src = dyanmicsImageUrl;

}

  • RE: Resize the image Attribute in ms crm.

    Hi Amrutha,

    manipulating directly the DOM to fulfil your requirement is not recommended as it is unsupported and can break after any update, so I would not recommend that approach.

    Could you consider addressing that issue by providing picture ratio recommendations to the users uploading the images?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans