It's all about the answers!

Ask a question

Get IAttachment from UUID of RTC attachment

Atul Kumar (1872329) | asked Apr 30 '14, 3:13 a.m.
I've got a UUID of an RTC workitem. Now, I need to convert this UUID to IAttachment, so that I can save that attachment to disk.

When I use following API method, it returns me IAttachmentHandle, but I need IAttachment instead:

(IAttachmentHandle) IAttachment.ITEM_TYPE.createItemHandle(UUID.valueOf(attachmentUuid), null);

Accepted answer

permanent link
Ralph Schoon (62.9k33645) | answered Apr 30 '14, 3:29 a.m.
edited Apr 30 '14, 3:29 a.m.
createItemHandle() creates a handle to the item a handle is not the item itself, it needs to be resolved to the item. There are different ways to do that, dependent on if it is client or server API. I assume this is client API. See for how this could be done. also see for an overview of the most common questions when using the client API.
Atul Kumar selected this answer as the correct answer

Your answer

Register or to post your answer.