It's all about the answers!

Ask a question

server side API : How to fect item handle using UUID?

Andrew Ciaz (5930) | asked Jan 07 '20, 4:25 a.m.


I want to fetch project area handle using the project area uuid. Please suggest server side API to fetch item handle.

Accepted answer

permanent link
David Lafreniere (4.8k7) | answered Jan 07 '20, 2:41 p.m.

IRepositoryItemService itemService = getService(IRepositoryItemService.class);
UUID projectAreaUUID = getProjectAreaUUID();
IProjectAreaHandle projectAreaHandle = (IProjectAreaHandle) IProjectArea.ITEM_TYPE.createItemHandle(projectAreaUUID, null);
IProjectArea projectArea = (IProjectArea) itemService.fetchItem(projectAreaHandle, null);

Andrew Ciaz selected this answer as the correct answer

Your answer

Register or to post your answer.