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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Customizing "Enhanced experience for adding products" to prevent users from adding products

(1) ShareShare
ReportReport
Posted on by 227
Hello,

I'm looking for a way to prevent users from adding products to quotes if total stock is less than or equal to 0 with a notification dialog or something similar.I'm open to using customizations using JS or plugin. I just need a pointer to where to customize this area.

Thanks in advance.



I have the same question (0)
  • Barış Kuzu Profile Picture
    227 on at
    Customizing "Enhanced experience for adding products" to prevent users from adding products
    Both are awesome ideas! Thansks a lot! I'll use it.
  • Verified answer
    Tom_Gioielli Profile Picture
    2,020 Super User 2025 Season 2 on at
    Customizing "Enhanced experience for adding products" to prevent users from adding products
    You could use a real-time workflow to throw an error upon trying to create the line items from this dialog. It would run on the Quote Product table, and be set to run on real-time when a record is created. If the selected product has a stock = 0, then end workflow as canceled. This will prevent the Quote Product record from being created, and you can customize the message to say something to the user. (Using Real-Time Workflows to Show Error Messages)
     
    Only downside is that it only runs when they try to actually create the records, not while they are actively using the Enhanced Experience to find products.
     
    Another choice could be customizing the products system view so that only items with a stock > 0 are even available to choose?

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 141

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 132

#3
DAnny3211 Profile Picture

DAnny3211 130

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans