Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

BPDeprecatedClassMethod: width has been deprecated and should not be used

(1) ShareShare
ReportReport
Posted on by 16

 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.
  • Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    BPDeprecatedClassMethod: width has been deprecated and should not be used
  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    BPDeprecatedClassMethod: width has been deprecated and should not be used
    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.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans