Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Accessing the Project View
Groupe_gCont_(daniel.emond@dmr.ca_(Delete)_2243290
Hi ! In Livelink 9, when you click on the menu "Personal -> projects", livelink show you all the project to which you have access, whether or not they are in your Workspace. Is there a way to get the same result via an API ? I mean, is there a query or function that return the list of all projects a user has access to ? I had the idea of querying the PW and EW, but what if the project was created in the workspace of another user ?Thanks for your past and future helpSteph
Find more posts tagged with
Comments
Groupe_gCont_(daniel.emond@dmr.ca_(Delete)_2243290
In the documentation, I found that listing group (Listgroups API) could do what I want, since it seems to consider projects as a kind of group. I've been trying to use the ListGroup API, but it always gives me a count of 0.Here is what I do, maybe you'll see my mistake with your eagle eyes.Note that the Session.ExecuteLAPI simply translate the error code into an error message from Livelink dans display it in a MsgBox. It does nothing if the return code is 0.' Create collection and Allocate memorySet mcolItems = New Collectionsession.ExecuteLAPI LL_ValueAlloc(mlngRecArrayGroup)Dim lngCount As Long ' List countDim lngIndex As Long ' iteratorDim objItem As LLGroup ' Item inserted into collection' List all groupssession.ExecuteLAPI LL_ListGroups(session.SessionID, LL_ANY, mlngRecArrayGroup)' This call returns 0session.ExecuteLAPI LL_ValueGetLength(mlngRecArrayGroup, lngCount)Am I wrong thinking that this function should return all groups and projects ? Even if it shouldn't return projects, I highly exptect it to return groups, but it doesn't, so what's wrong ?Thanks in advanceSteph
Groupe_gCont_(daniel.emond@dmr.ca_(Delete)_2243290
Well, it seems I have a misconception of what LL_ANY is used for. I thought that passing this value to the API would return ALL groups, but it doesn't. If instead I use LL_GROUP, I get the expected count of 4. LL_PROJECT still gives a count of 0. A closer look into the SQL Server table tells me that the projects are not directly in the table, but each project has three groups (members, Coordinator and Guests), as stated in the documentation. Now, if these are not project groups, WHAT IS a project group ? Could someone from OpenText explain me when the values LL_ANY and LL_PROJECT are usefull when dealing with the user API, please.Thanks Steph
Sun_Livelink_Admin_(sunmic01admin_-_(deleted))
Sorry I am not replying with an answer, I am in the same situation as you were a month ago. Surprisingly, I have gone through exactly the same approach as you did.Just check if you had figured out a solution... Thanks.yc
Richard_Boyne_(boyne_(Delete)_891609)
To find all of the projects to which the current user is assigned, you may want to use the followng search string in the LAPI ApplyQuery function:"202" In the "Common Region Names" page under the "Search API" of the LAPI online documentation, OTSubType is defined as the searchable region containing the object subtype.LAPI uses object subtype on functions such as CreateObjectEx to designate the kind of Livelink object. e.g.,"objSubType the subType of the object to create, specified by one of the Object Type Constants. "The "Object Type Constant" for a Project object has a value "202". As shown in the LAPI provided language support files: #define LL_PROJECTSUBTYPE 202orPublic Const LL_PROJECTSUBTYPE = 202The query,"202" should return a result set of all project objects that the user is permitted to see. happy searching