<force:recordData aura:id="recordLoader" recordId="{!v.recordId}" targetFields="{!v.simpleRecord}" fields="CaseNumber" />
{!v.simpleRecord.CaseNumber}
{!v.recordId}
<center>
<lightning:button label="Attach file">
<a href="{!'/p/attach/NoteAttach?pid='+{!v.recordId}+'/parentname='+{!v.simpleRecord.CaseNumber}+'/'+'&retURL=%2F'+{!v.recordId}}" target="_blank">Attach file</a>
</lightning:button>
</center>
Failed to save CustomAttachmentRelatedList.cmp: c:CustomAttachmentRelatedList:17,118: ParseError at [row,col]:[18,118] Message: The reference to entity "retURL" must end with the ';' delimiter.: Source
I'm getting the above error not sure what is wrong in my URL.
My Expected URL looks like:
https://garvitasb2bsc--4hdev.cs60.my.salesforce.com/p/attach/NoteAttach?pid=5003C000003bdmt&parentname=0114054744&retURL=%2F5003C000003bdmtQAA where ‘500..’ is case id, ‘001’ is the case number.