Happy Business Starts Here

Zuora Support

Unable to Redirect to zqu__EditQuoteDetail VF page

Problem – In this specific case, customer added a custom button to clone the quote and bring the cloned quote to the OOTB EditQuoteDetail page. Below is the code piece they have added –

 

if(cloneQuoteResult != ''){
  window.open('/apex/zqu__EditQuoteDetail?EditMode=1&quoteId=' + cloneQuoteResult);
}

 

The action redirects the user to the appropriate page however after a moment it gets refreshed and the quoteId parameter is erased and all that is left is /apex/quoteDetail?EditMode=1.






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

1 REPLY 1
Highlighted
Zuora Support

Re: Unable to Redirect to zqu__EditQuoteDetail VF page

Solution –

If you are facing the similar issue, please try and use the below code instead which we used here and it worked without any issues.

 

if(cloneQuoteResult != ''){ 
window.open('/apex/zqu__QuoteDetail?EditMode=1&quoteId=' + cloneQuoteResult); 
}

 

Please note that the only change is that we used zqu__QuoteDetail  instead of zqu__EditQuoteDetail






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √