Hello @PhoebeK
If emailAttachmentList is a DynamicArray, then the following property declaration is correct:
Attempt 2 //
Property emailAttachmentList As List of Request.EmailAttachment(%JSONFIELDNAME = "emailAttachmentList");It looks like you're trying to set the value directly like:
callrequest.emailAttachmentList.attachmentClass = "application/xml"
However, since emailAttachmentList is a list, you need to either:
- Use %JSONImport(response) to populate the list properly (e.g., `callrequest.%JSONImport(response)`), or
- Loop through the list and set the property on each individual item, like this:
For i=1:1:callrequest.emailAttachmentList.Count() {
Set callrequest.emailAttachmentList.GetAt(i).attachmentClass = "application/xml"
}- Log in to post comments