Skip to main content

I am trying to Redirect to the Electronic Signature VF page by using the sendWithRedirect method from the ElectronicSignaturePlugin3 interface provided by Steelbrick. The problem with this method is that has a return value of the datatype string. The VF Page that I am trying to redirect to has the 'Require CSRF protection on GET requests' checkbox set to True. When I am trying to navigate to this VF page using the sendWithRedirect method I am receiving an Invalid CSRF token error. Can the team let me know how can I add CSRF token value to the String which is returned to the method. Ideally according to Salesforce documentation the return type for this method should be PageReference but here it is String so, I am unable to access my VF page.

//My Code

public String sendWithRedirect(final List<SBQQ__QuoteDocument__c> quoteDocuments) {

PageReference pg = Page.c__SignaturePage;

return pg.getUrl();

}

//Output

Invalid CSRF token

1 resposta
  1. 4 de mai. de 2018, 18:59
    We have created a workaround for this issue by redirecting to an intermediate VF page (having the CSRF get checkbox unchecked) from the sendWithRedirect method. This intermediate VF page will then open a confirmation dialog which will redirect the User to the Signature page. I hope the Steelbrick CPQ team gets the interface method working soon so that we can remove this workaround.