What should I set for left-hand side when using RemoveDeletedObject RUF in an activity?

Hi,

I know that if we want to delete certain elements in a Page List, we need to set .pyDeletedObject to true first, and run RUF RemoveDeletedObjects after iteration. This may be a basic question, but what should I set for the left-hand side when using RUF in an activity? I just need to run it, and that’s it. I do not need to specify any property. Should I use Property-Set method, or can I run RUF directly by other method? Please guide me.

Thanks,

Hi @CloeW938: If the RUF is defined to have any output, you can get the output in what you defined in propertyName. In this case, you can just set it to a parameter / local variable and ignore it.

To answer your question on the alternate, you can use Call-Function method in activity to perform the same.

Thanks

@ArulDevan

Thank you very much for your response.

  1. The first approach is just make up Param (ex. Param.Test) as below, right? This is working, but just to clarify.

  1. For second approach, I have tried it as below. Seems it is working, but do you think this looks okay? Should I enter anything in Return value, or is blank just fine?

Which approach above do you think is better? I just want to follow best practice if any.

Regards,

Hi @CloeW938: Both are correct.

With regards to PropertiesName or Return Value - if the RUF is defined to have a output, you will get the output in the mentioned property. Lets assume RUF IndexInPageList, it will give you the index value. In your case there is no output for removedeletedobjects hence leaving the return value as empty will not have any impact. Also the param.test will have nothing.

Note: if you are using property-set, instead of Param.Test, use some name like Param.DelFromTmpPage as a better coding practice. For this requirement, i suggest to use call-function.

Thanks.

@ArulDevan

Thank you very much for your clear explanation!