Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Insight: Groovy scrip across ObjectSchemas

Michael Brus March 1, 2019

Hi

I currently are working on a script that takes data from different objects in different ObjectSchemas. Basically I do some simple calculations based on objects in different schemas that has reference to a master object. This works fine when using the script console. But when using it in an automation rule it only collects the data from the schema that the rule resides in, which is where the master object resides in.

I'm using the IQL facade findObjectsByIQL. And as mentioned when using it in the script editor there are no problems.

I'm using version 6.1.0

Any ideas ?

 

Best regards  

Michael

1 answer

1 accepted

0 votes
Answer accepted
Yinon Negev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 14, 2019

Hi Michael.

      This is due to the Schema context, where the Automation rule is running from.

You can try findObjectsByIQLAndSchema and loop through your schemas (by Schema Id) to find the objects matching your IQL.

Kind regards,

Yinon

Team Riada

Suggest an answer

Log in or Sign up to answer