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,...
Suggested Answer

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

(1) ShareShare
ReportReport
Posted on by 11
 
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
 
 
 
I have the same question (0)
  • Sachin Jadhav Profile Picture
    157 on at
    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. 
  • GE-29081400-0 Profile Picture
    11 on at
     
    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!!!
  • Suggested answer
    Amit Katariya007 Profile Picture
    10,409 Moderator on at
    Hello User,
     
    Please refer this article which will help you to understand the Concurrency Control when updating a record.
     
    Thank you,
    Amit Katariya
     
     
  • CU-18031918-4 Profile Picture
    on at
    aaa
  • GE-29081400-0 Profile Picture
    11 on at
    @Amit Katariya007, thanks for your suggestion.
     
    Unfortunately for me, I am not using a plugin I am creating.
     
    This is Microsoft Core Code, and so far they are not willing to share it with me so I can improve it to match their statement that the Opportunity can not be modify after it is being closed.
     
    I know they are working on it, or so I have been told in multiple follow-up emails I have received.
     
     
     
     

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 June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Manoj - ManoVerse Profile Picture

Manoj - ManoVerse 108 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 63

#3
Chris1968 Profile Picture

Chris1968 20

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans