Scripting variable for node "Product code"

Started by ryny24, March 19, 2020, 03:55:49 AM

Previous topic - Next topic

ryny24

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!

Egert143


Filipp Sudanov

print $node->productCode;
should work. What version are you using?