You need to sign in to do that
Don't have an account?
Lewis Howel
Help! I'm admin but hoping someone can help with apex code?
Hi all, I currently have a button with teh below code. It is meant to update the expiry date field on CPQ Quote, and then produce a document via template builder which would show the expiry adte. At present though, it seems to add the date after the document, meaning first document has no expiry date, but clicking a second time it does have a date. I'm hoping it's a simple fix for an apex genious out there?
/apex/APXTConga4__Conga_Composer
?id={!SBQQ__Quote__c.Id}
&TemplateId=a0Ww000000IyzjV
&QueryId=[QuoteLines]a0V1r00000Ijjos?pv0={!SBQQ__Quote__c.Id},[QuoteGroups]a0V1r00000Ijjrw?pv0=
{!SBQQ__QuoteLine__c.SBQQ__GroupId__c},[QuoteBaseUnits]a0V1r00000IjjzK?pv0={!SBQQ__QuoteLine__c.Quote4BaseUnitsId__c}
&UF0=1
&MFTS0=SBQQ__ExpirationDate__c
&MFTSValue0={!TEXT(TODAY()+60)}
&DS7=0
/apex/APXTConga4__Conga_Composer
?id={!SBQQ__Quote__c.Id}
&TemplateId=a0Ww000000IyzjV
&ReportId=[QuoteDetails]00O1r000007VH8F?pv0=
&UF0=1
&MFTS0=SBQQ__ExpirationDate__c
&MFTSValue0={!TEXT(TODAY()+60)}
&DS7=0
/apex/APXTConga4__Conga_Composer
?id={!SBQQ__Quote__c.Id}
&TemplateId=a0Ww000000IyzjV
&QueryId=[QuoteLines]a0V1r00000Ijjos?pv0={!SBQQ__Quote__c.Id},[QuoteGroups]a0V1r00000Ijjrw?pv0=
{!SBQQ__QuoteLine__c.SBQQ__GroupId__c},[QuoteBaseUnits]a0V1r00000IjjzK?pv0={!SBQQ__QuoteLine__c.Quote4BaseUnitsId__c}
&UF0=1
&MFTS0=SBQQ__ExpirationDate__c
&MFTSValue0={!TEXT(TODAY()+60)}
&DS7=0
/apex/APXTConga4__Conga_Composer
?id={!SBQQ__Quote__c.Id}
&TemplateId=a0Ww000000IyzjV
&ReportId=[QuoteDetails]00O1r000007VH8F?pv0=
&UF0=1
&MFTS0=SBQQ__ExpirationDate__c
&MFTSValue0={!TEXT(TODAY()+60)}
&DS7=0