Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

Get Close as Lost Popup attributes

(0) ShareShare
ReportReport
Posted on by 40

Hi,

How to get the StatusReason field value from Opportunity close as lost popup by using javascript?

Categories:
  • LeoAlt Profile Picture
    LeoAlt 16,331 on at
    RE: Get Close as Lost Popup attributes

    Hi Chinju,

    Unfortunately there is no supported JavaScript API to get attributes on dialog form.

    If you want to validate field on this type of form, such as Status Reason, please create a real-time workflow to detect field change.

    1.OOB way:

    Add Stop workflow action into the workflow:

     8130.jpg

    Then it will throw business process error when condition is met

    5658.jpg

    You could read guide below for a detailed configuration with business requirement.

    https://gauravtempe.com/capture-required-data-in-bpf-before-closing-an-opportunity/d

    2.Register a plug-in into CRM and execute it with the workflow

    https://community.dynamics.com/crm/b/crmpowerobjects/posts/how-to-validate-close-as-won-on-an-opportunity

    Supplement for plug-in:

    https://simplicitypoint.wordpress.com/2012/11/08/getting-the-opportunity-entity-in-plugin-when-closing-as-won/

    Best Regards,

    Leo

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,492 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans