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

Announcements

No record found.

News and Announcements icon
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 108

 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,833 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 545 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 408

#3
Adis Profile Picture

Adis 267 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans