/ Forums / Advansys Formativ / Creating Solutions with Formativ / getMessage from Proxy fails / Reply To: getMessage from Proxy fails
February 26, 2009 at 11:57 am
#8104
Hi,
With the help of this post: http://www.advansyscorp.com/forums/topic/7454029072/
I created a work around:
intParentAttachmentCount = GroupWise.ItemAttachmentGetCount("X00")
for intCounter = 0 to intParentAttachmentCount - 1
' extract from email attachement as other classes don't have attachments
if GroupWise.ItemAttachmentGetClass("X00", intCounter) = 2 then
' current account
set tmpMsg = groupwise.Account.GetMessage(groupwise.ItemAttachmentGetName("X00", intCounter))
if tmpMsg <> "" then
ExtractAttachments tmpMsg
else
' proxies
for intPrx = 0 to groupwise.Account.Application.ProxyHistory.Count - 1
set tmpAccount = groupwise.Account.proxy(groupwise.Account.Application.ProxyHistory(intPrx))
set tmpMsg = tmpAccount.GetMessage(groupwise.ItemAttachmentGetName("X00", intCounter))
if tmpMsg <> "" then
ExtractAttachments tmpMsg
set tmpAccount = nothing
set tmpMsg = nothing
exit for
end if
next
set tmpAccount = nothing
set tmpMsg = nothing
end if
else
' normal attachment code
end if
next
gonna go optimize it…