Happy Business Starts Here

Highlighted
Support SME

How do I advance the Subscription sequence number to a desired number?

Question:

 

How do I advance the Subscription sequence number to a desired number? E.g. my Service environment has been refreshed, but the refresh did not happen the very same time as the linked Salesforce environment's refresh, therefore we're behind in Subscription sequence numbers and Sync processes are failing.



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

Re: How do I advance the Subscription sequence number to a desired number?

Answer:

 

We can simply create dummy subscriptions till we surpass the sequence number in Salesforce, meaning we can once again sync our new subscriptions over to SF.

 

1., We need to create a dummy account, and query it's ID

 

2., Now we can mass-create the dummy subscriptions under this dummy account. The following call will create subscriptions and therefore will advance your Subscription sequence up to 50 times, depending on how many times you repeat <ns1:subscribes></ns1:subscribes> (NOT <ns1:subscribe>!!!)

 

 

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns2="http://object.api.zuora.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://api.zuora.com/">
  <SOAP-ENV:Header>
    <ns1:SessionHeader>
<ns1:Session>yPNqlwxcIAvwBBdywrUIjRTdR8sHHmne_upedOmG4MMwiKrOuVoqJFHkRK1uEP1TIX3xthZHvzHt22AVtbcsYAEw-JSoks_ALFeRv_WQnbQB0jVtjyHhALVtq3qZlCZy5pekj8DjLzr3L8tig_pNWs7-pNxQDldLdGL3w7wmqR2_gWCwSLGLWD7leuXmtdPxppbatd_Iz3c6l3yIufVKoKoyd2RhS_VJ62ImbdhdnZsgF-1PmyPV44FugsCpawTmRe2ZbJHReh8ti7rk_c8ahlm51eWQnsgvCm7sRvwz2YuO2JCFhvYbPeGr-GokdCsnkQ2m3eCeoQ1YeEklxstw5hhOzSr2g5qlGKedQQvZWBk=</ns1:Session>
</ns1:SessionHeader> 
</SOAP-ENV:Header> 
<SOAP-ENV:Body>
<ns1:subscribe>
<ns1:subscribes>
    <ns1:Account xsi:type="ns2:Account">
        <ns2:Batch>Batch1</ns2:Batch>
        <ns2:BillCycleDay>1</ns2:BillCycleDay>
        <ns2:Currency>CHF</ns2:Currency>
        <ns2:Id>2c92c0f848a2eacc0148a8364dff44c1</ns2:Id>
        <ns2:Name>Sequence_advance</ns2:Name>
        <ns2:PaymentTerm>Net 30</ns2:PaymentTerm>
       </ns1:Account>
    <ns1:BillToContact xsi:type="ns2:Contact">
        <ns2:Address1></ns2:Address1>
        <ns2:City></ns2:City>
        <ns2:Country>US</ns2:Country>
        <ns2:FirstName>Viktor</ns2:FirstName>
        <ns2:LastName>Vajda</ns2:LastName>
        <ns2:PostalCode></ns2:PostalCode>
        <ns2:State>CA</ns2:State>
        <ns2:WorkEmail></ns2:WorkEmail>
        <ns2:WorkPhone></ns2:WorkPhone>
    </ns1:BillToContact>
    <ns1:PreviewOptions>
        <ns1:EnablePreviewMode>false</ns1:EnablePreviewMode>
        <ns1:NumberOfPeriods>3</ns1:NumberOfPeriods>
    </ns1:PreviewOptions>
    <ns1:SubscribeOptions>
        <ns1:GenerateInvoice>false</ns1:GenerateInvoice>
        <ns1:ProcessPayments>false</ns1:ProcessPayments>
    </ns1:SubscribeOptions>
    <ns1:SubscriptionData>
        <ns1:Subscription xsi:type="ns2:Subscription">
            <ns2:AutoRenew>false</ns2:AutoRenew>
            <ns2:ContractAcceptanceDate>2016-12-01</ns2:ContractAcceptanceDate>
            <ns2:ContractEffectiveDate>2016-12-01</ns2:ContractEffectiveDate>
            <ns2:InitialTerm>1</ns2:InitialTerm>
            <ns2:RenewalTerm>0</ns2:RenewalTerm>
            <ns2:ServiceActivationDate>2016-12-01</ns2:ServiceActivationDate>
            <ns2:TermStartDate>2016-12-01</ns2:TermStartDate>
            <ns2:TermType>TERMED</ns2:TermType>
        </ns1:Subscription>
        <ns1:RatePlanData>
            <ns1:RatePlan xsi:type="ns2:RatePlan">
                <ns2:ProductRatePlanId>2c92c0f84ed8c9fe014ee0f7e4ad051a</ns2:ProductRatePlanId>
            </ns1:RatePlan>
            <ns1:RatePlanChargeData>
        <ns1:RatePlanCharge xsi:type="ns2:RatePlanCharge">
          <ns2:ProductRatePlanChargeId>2c92c0f94ed8d0d7014ee0f877720e55</ns2:ProductRatePlanChargeId>
         <ns2:EndDateCondition>SubscriptionEnd</ns2:EndDateCondition>
        </ns1:RatePlanCharge>
      </ns1:RatePlanChargeData>
        </ns1:RatePlanData>
    </ns1:SubscriptionData>
</ns1:subscribes>

<!--YOU CAN REPEAT THE "SUBSCRIBES" UP TO 50 TIMES IN ONE CALL -->

<ns1:subscribes>
    <ns1:Account xsi:type="ns2:Account">
        <ns2:Batch>Batch1</ns2:Batch>
        <ns2:BillCycleDay>1</ns2:BillCycleDay>
        <ns2:Currency>CHF</ns2:Currency>
        <ns2:Id>2c92c0f848a2eacc0148a8364dff44c1</ns2:Id>
        <ns2:Name>Sequence_advance</ns2:Name>
        <ns2:PaymentTerm>Net 30</ns2:PaymentTerm>
       </ns1:Account>
    <ns1:BillToContact xsi:type="ns2:Contact">
        <ns2:Address1></ns2:Address1>
        <ns2:City></ns2:City>
        <ns2:Country>US</ns2:Country>
        <ns2:FirstName>Viktor</ns2:FirstName>
        <ns2:LastName>Vajda</ns2:LastName>
        <ns2:PostalCode></ns2:PostalCode>
        <ns2:State>CA</ns2:State>
        <ns2:WorkEmail></ns2:WorkEmail>
        <ns2:WorkPhone></ns2:WorkPhone>
    </ns1:BillToContact>
    <ns1:PreviewOptions>
        <ns1:EnablePreviewMode>false</ns1:EnablePreviewMode>
        <ns1:NumberOfPeriods>3</ns1:NumberOfPeriods>
    </ns1:PreviewOptions>
    <ns1:SubscribeOptions>
        <ns1:GenerateInvoice>false</ns1:GenerateInvoice>
        <ns1:ProcessPayments>false</ns1:ProcessPayments>
    </ns1:SubscribeOptions>
    <ns1:SubscriptionData>
        <ns1:Subscription xsi:type="ns2:Subscription">
            <ns2:AutoRenew>false</ns2:AutoRenew>
            <ns2:ContractAcceptanceDate>2016-12-01</ns2:ContractAcceptanceDate>
            <ns2:ContractEffectiveDate>2016-12-01</ns2:ContractEffectiveDate>
            <ns2:InitialTerm>1</ns2:InitialTerm>
            <ns2:RenewalTerm>0</ns2:RenewalTerm>
            <ns2:ServiceActivationDate>2016-12-01</ns2:ServiceActivationDate>
            <ns2:TermStartDate>2016-12-01</ns2:TermStartDate>
            <ns2:TermType>TERMED</ns2:TermType>
        </ns1:Subscription>
        <ns1:RatePlanData>
            <ns1:RatePlan xsi:type="ns2:RatePlan">
                <ns2:ProductRatePlanId>2c92c0f84ed8c9fe014ee0f7e4ad051a</ns2:ProductRatePlanId>
            </ns1:RatePlan>
            <ns1:RatePlanChargeData>
        <ns1:RatePlanCharge xsi:type="ns2:RatePlanCharge">
          <ns2:ProductRatePlanChargeId>2c92c0f94ed8d0d7014ee0f877720e55</ns2:ProductRatePlanChargeId>
         <ns2:EndDateCondition>SubscriptionEnd</ns2:EndDateCondition>
        </ns1:RatePlanCharge>
      </ns1:RatePlanChargeData>
        </ns1:RatePlanData>
    </ns1:SubscriptionData>
</ns1:subscribes>
</ns1:subscribe>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

 



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