Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Highlighted
Vodafone team Contributor.
Contributor.
142 views

Runtime error - Application defined or object defined error.

Hi Team,

we have  written below code to select attachment from a collection of attachments read from outlook using email fetching connector. but it not working i am getting above error.

dim iCount as Long
dim i as integer
iCount = PifGetItemCount([Attachment]) 

'iCount = PifGetItemCount("Attachment") 

Log("Icount"+iCount)
for i= 0 to icount -1
If ([Attachment(i).MimeType] = "application/msg") then
RetVal ="add"
Else
RetVal = pifIgnoreDocumentMapping("no Application/msg")
End If
Next i

 

dim iCount as Long
dim i as integer
iCount = PifGetItemCount("Attachment")
for i= 0 to icount -1
If (LeftPart([Attachment.FileFromMail],".")="SelfAttachment") then
RetVal = [Attachment(i).FileFromMail]
Else
RetVal = pifIgnoreDocumentMapping("no SelfAttachment")
End If
Next i

clipboard_image_0.png

clipboard_image_1.png

clipboard_image_2.png

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.