Question

1
Replies
20
Views
Gleb Chernov (GlebC108)
Alfa-Bank

Alfa-Bank
RU
GlebC108 Member since 2018 1 post
Alfa-Bank
Posted: March 15, 2021
Last activity: April 1, 2021
Posted: 15 Mar 2021 11:11 EDT
Last activity: 1 Apr 2021 4:00 EDT
Solved

Calling collection from a function

Hello to everyone!

Could someone help with the following problem: need to call a collection which name is given as a parameter?

Seems like PublicAPI has the corresponding method - applyCollection(keys, primaryPage, params).

However, I tried to call it in different ways(passed pxInsHandle, pzInsKey etc.) and faced with the

Failed to find a 'RULE-DECLARE-COLLECTION' with the name '' that applies to 'ClassName'; no rules with this name were found in the rulebase.

I suppose that there is required property that should be passed to the applyCollection method but couldnt get what exactly needed.

 

Thanks in advance!

Gleb Chernov

Pega Platform 8.3.1 Case Management