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

Announcements

News and Announcements icon
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)
  • Verified answer
    Tom_Gioielli Profile Picture
    3,090 Super User 2026 Season 1 on at
    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?
  • Barış Kuzu Profile Picture
    227 on at
    Both are awesome ideas! Thansks a lot! I'll use it.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Nagaraju_Matta Profile Picture

Nagaraju_Matta 123

#2
Hamza H Profile Picture

Hamza H 112 Super User 2026 Season 1

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans