Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

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

(2) ShareShare
ReportReport
Posted on by 66
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.



  • BK-17051419-0 Profile Picture
    BK-17051419-0 66 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_G Profile Picture
    Tom_G 69 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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,861 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,540 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans