Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

addRelatedCases(caseID, relatedCases, context)

Updated on July 20, 2021

Relates several cases to a specific case.

Returns

A Promise.

Parameters

NameTypeDescriptionRequired
caseIDstringThe ID of the case to which several cases can be related.
relatedCasesarrayThe list of case IDs that must be related to a case.
contextstringThe name of the context where the API is being called.

Usage example

In this example, the API relates two cases whose IDs are T-200 and T-201 to the case whose ID is W-102.

PCore.getRelatedCasesApi().addRelatedCases('W-102', [{ ID : 'T-200'}, {ID : 'T-201'}], 'app/primary_1')
         .then(() => {
         // success
         }).catch(err => {
         // Error handling
         });

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us