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 :
Customer experience | Sales, Customer Insights,...
Unanswered

Resize the image Attribute in ms crm.

(0) ShareShare
ReportReport
Posted on by 233

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;

}

I have the same question (0)
  • Ioannis Vrasenikis Profile Picture
    on at

    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

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 137 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans