NetXMS Support Forum

English Support => General Support => Topic started by: ryny24 on March 19, 2020, 03:55:49 AM

Title: Scripting variable for node "Product code"
Post by: ryny24 on March 19, 2020, 03:55:49 AM
I am trying to create a script to match the "Product Code" shown in the General info of a device. It is not in the Wiki Node list but I also I tried using $node->productCode and several variations, however, none worked.

I also tried the function GetCustomAttribute($node, "productCode")); with several variations of the name, but all come back null.

Is it any way possible to access this data field?
Thank you!
Title: Re: Scripting variable for node "Product code"
Post by: Egert143 on March 19, 2020, 11:35:34 AM
Hello

Try $node->sysDescription
Title: Re: Scripting variable for node "Product code"
Post by: Filipp Sudanov on March 19, 2020, 11:11:48 PM
print $node->productCode;
should work. What version are you using?