08-28-2016 10:51 AM
09-07-2016 03:52 PM
It sounds like you know how to create an association using a node ref as the target. But what you'd like to do is use the path instead. So all you have to do is get the folder by path, then get that folder's node ref and then you know how to create the association from there.
Probably the easiest way to get something by path is to use search, like this:
SearchService.query(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, SearchService.LANGUAGE_XPATH, "/app:company_home/cm:path/cm:to/cm:Folder1/cm:Folder2")
That returns a result set, then you can get the node from the result set and ask it for its node ref.
09-07-2016 03:52 PM
It sounds like you know how to create an association using a node ref as the target. But what you'd like to do is use the path instead. So all you have to do is get the folder by path, then get that folder's node ref and then you know how to create the association from there.
Probably the easiest way to get something by path is to use search, like this:
SearchService.query(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, SearchService.LANGUAGE_XPATH, "/app:company_home/cm:path/cm:to/cm:Folder1/cm:Folder2")
That returns a result set, then you can get the node from the result set and ask it for its node ref.
10-12-2016 07:06 AM
Thanks Jeff. Let me try
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.