I have an Opportunity Page with Standard Sales Path component and a custom lightning component. I update the stage from APEX and in lightning controller callback, I call the e.force:refreshView. But for some reason the page refresh is called before the update. So the sales path is not updated and show the old value of Opportunity stage. Please refer the code

var action = component.get("c.updateOpportunity");
action.setParams({ "oppId" : component.get("v.recordId"), "oppStageName" : 
newStage });
action.setCallback(this, function(response) {
var state = response.getState();
if(state === "SUCCESS") {
}else if (state === "INCOMPLETE") {
  • 1
    I think this issue has to do with the following known issue : success.salesforce.com/…. , though it says process builders and workflow rules. I think it is suitable for any automated process updates. – StormBr34ker Aug 31 '17 at 13:43
  • If it helps anyone, we raised the case with SF support for this bug and now the above code works just fine. – Pankaj Pandit Mar 15 '18 at 6:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.