This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to get list of request related to workset with PCMS API for C/C++

Hi all,

I want to use API/C++ to get all request which related to workset.

I used the function PcmsObjGetRels to navigate objects and their relationships to other objects.

I tried before the same function by looking for the baselines that related to workset.(Just i change PCMS_CHDOC with PCMS_BASELINE) and It's work fine.

I don't know if i can used also to get list of request related to workset . You find as below my code :

int norels = 0;
int workset_uid = 1508922122;
auto* ptrPcmsRelStruct = (PcmsRelStruct*)nullptr;
int res = PcmsObjGetRels(conId, workset_uid, PCMS_WORKSET, PCMS_CHDOC, 0, &norels, &ptrPcmsRelStruct);

When i run this code, i get always res = -1

I searched in the Oracle database for the existence of this relationship. I found the expected results.

Is there someone who can help me to have the function PcmsObjGetRels work properly or another suggestion using C/C++ PCMS api please.

 

  • Verified Answer

    +1

    Hello,

    The type of relationships Request - Workset (Project/Stream) is not supported by PcmsObjGetRels.

    What I can suggest at the moment as an alternative is either REST or Java API. Public Views is another option, in case if your application is going to have access to the Database.

    Regards,
    Alex

    --
    Alex Shevchenko
    Sr Development Manager
    Although I work for OpenText, I am speaking for myself and not for OpenText.
    If you found this post useful, give it a “Like” or click on "Verify Answer" under the "More" button.