Adds an attribute mapping to the configuration. Maps a named attribute to a feature, element, and class so that incoming records with this attribute are processed correctly by the Senzing engine.
The current configuration as a JSON string.
Attribute options including attribute, feature, element, and class.
attribute
feature
element
class
The updated configuration JSON string.
import { addAttribute } from "@senzing/configtool";configJson = addAttribute(configJson, { attribute: "LOYALTY_NUMBER", feature: "OTHER_ID", element: "OTHER_ID_NUMBER", class: "OTHER",}); Copy
import { addAttribute } from "@senzing/configtool";configJson = addAttribute(configJson, { attribute: "LOYALTY_NUMBER", feature: "OTHER_ID", element: "OTHER_ID_NUMBER", class: "OTHER",});
basic-usage snippet
Adds an attribute mapping to the configuration. Maps a named attribute to a feature, element, and class so that incoming records with this attribute are processed correctly by the Senzing engine.