Hello,
I’m attempting to attach 1+ files to my Email within Designer. I haven’t seen any examples on how this is done where the file path is within a detail record. I’d like to do something similar to the below logic. Obviously this logic isn’t pulling in the files, any help would be appreciated.
ie
var temp = “”;
temp = temp.replace(/\/g,“/”);
temp = results.append(“”);
results.append(“”);
var temp = detail.tables.FilePath;
temp = temp.replace(/\/g,“/”);
results.append(“”);
try this.
Also look at this link for examples.
I’ve tried this before. You get an error on: “detail” is not defined.
Where is the field FilePath?
record.tables.detail[0].fields.FilePath?
or
record.fields.FilePath?
It’s in the detail record.
record.tables.detail[0].fields.FilePath;
How can you add multiple file paths though from the detail record?
Well, you will have to make a loop…
var detailTableLength = record.tables.detail.length;
for(var i=0; i < detailTableLength; i++){
var temp = record.tables.detail[i].fields.FilePath;
temp = temp.replace(/\/g,“/”);
results.append(“”);
}