Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Sales forum / Issue 2 - Can't edit a...
Sales forum
Unanswered

Issue 2 - Can't edit an opportunity - That is not true!!!

Posted on by 5
 
There is no way to update an opportunity that has been closed. I can prove this is not true, and I can give you the steps to replicate my issue and explain how I have fixed it. I hope Microsoft's team fixs it on its end.
 
 
Scenario: you have the same opportunity open in two browsers:
Imagen
 
Now, you close as won one of the browsers:
 
Imagen
 
finally, go to the other browser, and update information, and click on Save....

How is this possible? why there is no check on save that the statecode is equal to 0 to allow the saving?
 
 
Imagen
 

this is the code I make to prevent when I force the onsave, but I wonder if Microsoft's team can do better than me
Imagen
 
getOpportunityState_fm makes a synchronous call to the webapi to get the latest status of the record, and if it is open (0), then it allows it to save /update the changes
 
 
 
  • GE-29081400-0 Profile Picture
    GE-29081400-0 5 on at
    Issue 2 - Can't edit an opportunity - That is not true!!!
     
    You are right that the same salesperson might not have two browsers open at the same time. But what if a sales manager is checking the Opportunity, and the salesperson closes it as won, but the manager fixes something and clicks on save?
     
    What if you have a process where multiple people check the status of their areas in the opportunity and, while checking, the sales rep closes it as won? 
     
    That scenario is possible (at least in our company), and I am just saying, please check if you can save before saving. It is a valid statement what you say at the end; systems might not have been designing to work like that.
     
    But they can be changed, and I am using their webapi to prove it can be done. I am not a Microsoft employee, but I know they are way more intelligent than me :)
     
    Regardless I still have this problem, and so do you!!!
  • Sachin Jadhav Profile Picture
    Sachin Jadhav 127 on at
    Issue 2 - Can't edit an opportunity - That is not true!!!
    I think what you are trying to do seems to be bit unusual way for sale person to operate on an opportunity.
    Why would opportunity owner open opportunity in 2 different tabs to work on?
     
    When you load the form, it gets loaded in current state on client side, so at this moment its not really able to understand what update happened on the server side.
     
    Yes, ideally on save it should recheck some critical validations like the one you mentioned, but unfortunately system may not have been designed that way currently. 

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans