Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

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

Posted on by 9
 
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 9 on at
    Issue 2 - Can't edit an opportunity - That is not true!!!
    @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.
     
     
     
     
  • Issue 2 - Can't edit an opportunity - That is not true!!!
    aaa
  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 7,924 Super User 2024 Season 1 on at
    Issue 2 - Can't edit an opportunity - That is not true!!!
    Hello User,
     
    Please refer this article which will help you to understand the Concurrency Control when updating a record.
     
    Thank you,
    Amit Katariya
     
     
  • GE-29081400-0 Profile Picture
    GE-29081400-0 9 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 131 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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

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... 290,946 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,420 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans