Happy Business Starts Here

Why navigateNext() method not working?

Highlighted
Zuora Support

Why navigateNext() method not working?

In a specific scenario, customer was adding a validation page for the quote wizard  for Amendment subscription which will throw error if the field evergreen='Yes' and should redirect to  page when evergreen='No', the issue is with the redirected url where the navigateNext() method is used for 'No' scenario but its not appending subscriptionid at the end for the URL



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
Zuora Support

Re: Why navigateNext() method not working?

After reviewing the code it was found, no parameters were being passed with navigateNext() call.

Please check the sample code provided in the below KC article:

https://knowledgecenter.zuora.com/CA_Commerce/I_Development_Resources/C_Component_Library/G_Componen...

 public PageReference navigateNext() {
        upsert thisQuote;
        Map<String, String> customUrlParameters = new Map<String, String>{'Id' => thisQuote.Id};
        return zqu.QuoteWizardManager.navigateNext(customUrlParameters);
    }

    public PageReference navigateBack() {
        upsert thisQuote;
        Map<String, String> customUrlParameters = new Map<String, String>{'Id' => thisQuote.Id,
                                                                     'oppId' => thisQuote.zqu__Opportunity__c};
        return zqu.QuoteWizardManager.navigateBack(customUrlParameters);
    } 

 



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