Happy Business Starts Here

Quote template error "These merge fields are not exist.".

Highlighted
Support SME
Support SME

Quote template error "These merge fields are not exist.".

Question or Problem Statement:
We followed REST API Call as described in yours documentation
https://knowledgecenter.zuora.com/DC_Developers/REST_API/B_REST_API_reference/Quotes_Document

When we make the callout, we get the following error:
The following fields are not valid merge fields. BundleRatePlan.SupplayAddress__c,QuoteRatePlanCharge.EffectivePrice,. <br>The reason may be:

1. These merge fields are not exist.

2. The hierarchy size of merge fields must be between 2 and 3.

However, using the Zuora Button Generate PDF that error dosen't appear. We have already checked the field level security and permission, but is not the error reason.






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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Support SME
Support SME

Re: Quote template error "These merge fields are not exist.".

Solution:
Adding "zquotesMajorVersion": "7" and "zquotesMinorVersion": "0"

{
   "documentType":"pdf",
   "quoteId":"a0vG000001BGwjf",
   "serverUrl":"https://c.na11.visual.force.com/services/Soap/u/10.0/00DG0000000jFG0",
   "templateId":"2c92c0f957ae0d300157b158fbf730e5",
   "sessionId":"00DG0000000jFG0!AQUAQNjwetsd4bPJVvgECnP2tiOFGYoY1LoKoUdvsJ6hfvfdSnXjK4vNv3DQtLNnDLHW00C3OPLFbY23tly.00tR7qeM7ntN",
   "zquotesMajorVersion": "7",
   "zquotesMinorVersion": "0"
}




Supporting References:

https://knowledgecenter.zuora.com/DC_Developers/REST_API/B_REST_API_reference/Quotes_Document






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

View solution in original post

1 REPLY 1
Highlighted
Support SME
Support SME

Re: Quote template error "These merge fields are not exist.".

Solution:
Adding "zquotesMajorVersion": "7" and "zquotesMinorVersion": "0"

{
   "documentType":"pdf",
   "quoteId":"a0vG000001BGwjf",
   "serverUrl":"https://c.na11.visual.force.com/services/Soap/u/10.0/00DG0000000jFG0",
   "templateId":"2c92c0f957ae0d300157b158fbf730e5",
   "sessionId":"00DG0000000jFG0!AQUAQNjwetsd4bPJVvgECnP2tiOFGYoY1LoKoUdvsJ6hfvfdSnXjK4vNv3DQtLNnDLHW00C3OPLFbY23tly.00tR7qeM7ntN",
   "zquotesMajorVersion": "7",
   "zquotesMinorVersion": "0"
}




Supporting References:

https://knowledgecenter.zuora.com/DC_Developers/REST_API/B_REST_API_reference/Quotes_Document






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

View solution in original post