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 :
Finance | Project Operations, Human Resources, ...
Unanswered

BPDeprecatedClassMethod: width has been deprecated and should not be used

(1) ShareShare
ReportReport
Posted on by 98

 void ShowLogo()
    {
        Image logoImage;
        
        try
        {
            if (imageContainer)
            {
                logoImage = new Image();
                logoImage.setData(imageContainer);
                Signature.image(logoImage);
                Signature.widthValue(logoImage.width());
                Signature.heightValue(logoImage.height());

            }
            else
            {
                Signature.image(null);
            }
        }
        catch (Exception::Warning)
        {
            throw error(strFmt(/@SYS19312/, imageFilePathName));
        }
    }

please help me with what should i use instead of deprecated methods mentioned below .

  • BPDeprecatedClassMethod: height has been deprecated and should not be used.
  • BPDeprecatedClassMethod: width has been deprecated and should not be used.
I have the same question (0)
  • GirishS Profile Picture
    27,827 Moderator on at
    Hi,
     
    I don't think there is no alternate method available. Methods width and height are still used in the number of standard classes. You can right click on width method and select find reference to see where it was used.
    These methods are deprecated but it's still used in number of standard classed. So far there is no alternate method available. You can leave as it is since the method was used in number of standard classes.
    Thanks,
    Girish S.
  • Mohit Rampal Profile Picture
    12,565 Moderator on at

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans