Build and Upload an XLSX Template
Design the workbook in Microsoft Excel, add bracketed S-Docs syntax, upload the .xlsx file, and generate dynamic spreadsheet output from Salesforce data.
Last updated
Was this helpful?
Was this helpful?
[{{!Opportunity.Name}}]
[<!--RENDER='{{!Opportunity.StageName}}' == 'Closed Won' -->]
Closed-won summary
[<!--ENDRENDER-->][{{!Account.Name}}]
[{{!Opportunity.Amount #,###.##}}][{{!Opportunity.Name}}]
[{{!Opportunity.Account.Name}}]
[{{!Contact.Email}}][<!--RENDER='{{!Contact.Phone}}' != 'NULL' -->]
Phone: [{{!Contact.Phone}}]
[<!--ENDRENDER-->][<!--RENDER=( ('{{!Account.BillingState}}' == 'CA' || '{{!Account.BillingState}}' == 'NV')
&& '{{!Account.Active_Contract__c}}' == 'True' ) -->]
Regional account with active contract
[<!--ENDRENDER-->][<!--RENDER='{{!Opportunity.StageName}}' == 'Closed Won' -->]
Congratulations on your purchase.
[<!--RENDER1='{{!Opportunity.Install_Date__c}}' != 'NULL' -->]
Installation is scheduled for [{{!Opportunity.Install_Date__c}}].
[<!--ENDRENDER1-->]
[<!--ENDRENDER-->][{{!<lineitemsSOQL>
<queryname>TopItem</queryname>
<soql>
SELECT Name, TotalPrice
FROM OpportunityLineItem
WHERE OpportunityId = '{{!Opportunity.Id}}'
ORDER BY TotalPrice DESC
LIMIT 1
</soql>
</lineitemsSOQL>}}]
[{{!TopItem.Name}}]
[{{!TopItem.TotalPrice #,###.##}}][{{!<lineitemsSOQL>
<queryname>FilteredItems</queryname>
<soql>
SELECT Name, TotalPrice
FROM OpportunityLineItem
WHERE OpportunityId = '{{!Opportunity.Id}}'
ORDER BY TotalPrice DESC
</soql>
<filter id="1">TotalPrice >= 1000</filter>
</lineitemsSOQL>}}]
[{{!FilteredItems.Name filter="1" offset="1"}}]
[{{!FilteredItems.TotalPrice filter="1" offset="1" #,###.##}}]