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 :
Microsoft Dynamics CRM (Archived)

Need to display a notification when adding similar product to product subgrid in opportunity.

(0) ShareShare
ReportReport
Posted on by

Hello, I am in need of displaying a error message when one adds a same product already present on product subgrid of opportunity form. This will restrict the user to add duplicate products in the product subgrid. Instead he can increase the number of quantity in product subgrid. Can this be done using Javascript? Any Help is very much appreciated.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    VermaNitin Profile Picture
    455 on at

    Hi Dinoop,

    You can do it using plugin using he below details.

    Message: Create

    Entity: OpportunityProduct

    Event Pipeline: Pre-validation

    When the plugin triggers, check if any other opportunityproduct exists for the opportunity and product combination.

    And throw exception if the above condition is passed.

    Hope it helps!

    Many thanks,

    Nitin Verma

  • Suggested answer
    PranavShroti Profile Picture
    4,510 on at

    Hi

    Go for editable subgrid and while entering product name, field onchange event check product already exists or not.

    Regards,

    Pranav

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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
RichardM Profile Picture

RichardM 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans