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.