NetXMS Support Forum

English Support => General Support => Topic started by: Staj on February 06, 2017, 03:58:16 PM

Title: FindObject/FindNodeObject in Library Script
Post by: Staj on February 06, 2017, 03:58:16 PM
How do you use FindObject and FindNodeObject functions properly in a Script from the Script Library executed from Server Console when CheckTrustedNodes is 1? All I ever get is null. I can't pass in another node because I can't fetch any nodes and passing null doesn't work.
Title: Re: FindObject/FindNodeObject in Library Script
Post by: Victor Kirhenshtein on February 23, 2017, 07:37:21 PM
You can't use them in script without node context when CheckTrustedNodes is on.

Best regards,
Victor