How to add a new parameter to an existing operation?

iker_nicolas
Champ on-the-rise
Champ on-the-rise

Hi,

I'm trying to create a relationship between two elements with the help of the operation Document.AddRelation. This operation has three parameters and I'm using all of them. Furthermore, I have to pass another parameter, the quantity of times this relations repeats. My idea is to add this parameter to the operation but I'm not sure if it's possible.

Thanks for the help, Iker

1 REPLY 1

Jackie_A
Confirmed Champ
Confirmed Champ

It sounds like you may want to contribute your own operation. This way you can dictate how many parameters are accepted. Maybe you can create an operation with a parameter that is a list.

https://doc.nuxeo.com/nxdoc/contributing-an-operation/