I am trying to display a field in a Repeat xml tag, but I keep getting a xpath exception error.
I have a template that uses the credit note object in Salesforce, and I am trying to display the unit price field on the invoice line object. I go from credit note > credit note line > credit allocations > invoice line > unit price. No matter how I construct the content select tag, I get an xpath exception error.
Any ideas on how I can get the unit price to display?
Field 1: <# <TableRow Select="/blng__CreditNote__c//blng__CreditNoteCreditLines__r" /> #>
Field 2: <# <TableRow Select=".//blng__CreditAllocations__r" /> #>
Field 3: <# <Content Select="./blng__InvoiceLine__r.blng__UnitPrice__c"/> #>
For example, this results in xpath exception error:
<# <Repeat Select="/blng__CreditNote__c//blng__CreditNoteCreditLines__r" /> #>
<# <Content Select="./blng__InvoiceLine__r.blng__UnitPrice__c"/> #>
<# <EndRepeat/> #>