HubSpot Connector 12.11

# NewField

The `<NewField>` element builds a new field but does not immediately change the document metadata. Normally the AddField element is preferred because it is simpler to use and immediately adds the new field in the current field context.

You can use the `<NewField>` element to ensure that subsequent standardizer operations do not interact with and modify the new field. The `<NewField>` element creates the field in virtual document metadata, separate from the actual document metadata. The content of the field can still be manipulated by child operations like AddField, SetValue, and SetAttribute.

Add the new field to the document by referencing its `id` attribute in the `srcId` attribute of a `<Move>` operation. Alternatively, define a `<Move>` operation with a `destId` attribute as a child operation of the `<NewField>` element.

Attribute | Description
--- | ---
`id` | An identifier for the new field.
`name` | The name of the new field.
`value` | The value of the new field.

The following example adds a field named "newField" with the value "newValue":

    <FieldStandardization>
        <NewField id="fieldID" name="newField" value="newValue">
             <SetAttribute name="newAttribute" value="true" />
        </NewField>
        <Move srcId="fieldID" />
    </FieldStandardization>

© Copyright 2022 Micro Focus or one of its affiliates
Version 12.11 | Last updated February 2022

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL HubSpot Connector 12.11

Topic Title: NewField