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

Custom Pricing Options in D365 Sales and Project Operations

(0) ShareShare
ReportReport
Posted on by 106

Hello All,

I am trying to do Custom Pricing at the opportunity product level to change the extended amount based on our requirement.

I have tried the sample plugin Sample: Calculate Price plug-in | Microsoft Docs and disabling the pricing in setting. When I created the sample plugin the plugin is going into the Infinite loop and throwing different exceptions like below

Exception Message: Object reference not set to an instance of an object.

ErrorCode: -2147220956
HexErrorCode: 0x80040224

HelpLink: go.microsoft.com/.../

TraceText:
[Microsoft.Dynamics.Sales.Plugins: Microsoft.Dynamics.Sales.Plugins.PostOperationOpportunityCreate]

I have tried to solve these by adding depth and also checking Parent entity SDK Messages and but by adding depth it is stopping other operation too if we create bulk Opp products like calculating the total amounts etc in quote Order Invoice 

Thanks,

Please suggest ASAP.

I have the same question (0)
  • Suggested answer
    Nya Profile Picture
    29,064 on at

    Hi,

    Please refer to the following troubleshooting.

    Object reference not set to an instance - Dynamics 365 Sales | Microsoft Docs

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 163 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 158

#3
Zhilan Profile Picture

Zhilan 49

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans