Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Single API call to update enhanced custom fields

Single API call to update enhanced custom fields

Looking to be able to modify an enhanced custom field similar to that of a custom data field.  For custom device data it is possible to use:  mod device -ip <ipaddr> -customname <fieldname> -customvalue <value>

This is not possible when updating enhanced custom fields and instead it is necessary to perform the following steps:

NA> mod metadata –metadataid 201 –data "value" –associatedtableid <deviceid>
To get the list of metadata for a given device, you would run the command:

NA> list metadata –table RN_DEVICE –associatedtableid <deviceid>

Note: That will not work unless a value has been already been assigned

NA> list metadata -table RN_DEVICE -associatedtableid <deviceid>

No results to display

If I manually edit the field for the device, it will now appear in the previous command:

NA> list metadata -table RN_DEVICE -associatedtableid <deviceid>

MetadataID   FieldID   Data   AssociatedTableID

1141              201        ODD   1111

I believe an ER was raised that requested the same functionality (see:  QCCR1B140397 Updating the Metadata for Enhanced custom fields).  The text of the ER is as follows: 

“To have  a single API call to modify enhanced custom data, as there already is for standard custom data.”

2 Comments
Micro Focus Expert
Micro Focus Expert
Changed the status to Waiting for Votes.
Micro Focus Expert
Micro Focus Expert
Status changed to: Waiting for Votes
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.