| || |
uploading multiple attachments to defect using OTA
I am targetting to attach multiple files to one single defect using OTA_API 9.0 as below:
for each F in fcollection
Set theAttachment = attachFact.AddItem(null)
theAttachment.FileName = F.Name
theAttachment.Type = 1
It seems only the fist file got attached and the loop got stopped when execute theAttachment.Post.
Any body knows the solution?
Thanks in advanced!
Re: uploading multiple attachments to defect using OTA
I figured out the theAttachment.FileName = F.Name
should be theAttachment.FileName = file path + F.Name