Query Example

Below is an example of how to use the Engineering Item Service to search for Released items.

const dsAPI = context.dsxAPI();
const spaceService = dsAPI.getSpaceService();
const session = dsAPI.getTenantSession(spaceService);

const result = spaceService.getEngItemService().search(session,
                  'current:Released',
                  'DETAILS',
                  100,
                  0);

result.getMembers().forEach(item => {
  const enterpriseRef = item.getEnterpriseReference();
  //const attribute = item.getAttributes().get("...");

});