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

Custom Pricing in Sales

(0) ShareShare
ReportReport
Posted on by 100

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.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,274 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,939 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans