NERM - Creating Value Builders

:bangbang: Please be sure you’ve read the docs and API specs before asking for help. Also, please be sure you’ve searched the forum for your answer before you create a new topic.

Hello everyone, I’m wondering if there’s a method for exporting the current value builders from our NERM tenant and then importing our custom value builders. I couldn’t find any API endpoint to do that. Is there any documentation available on this process?

There isn’t an API for the value builders. The only option is to export the object via the UI, which can then be changed and imported. Unfortunately, there isn’t an option to see the current value though without looking at its use within your profiles.

I couldn’t find the API, do you mind sharing the link.

It’s not via any API, but through the UI. If you go to Value Builders page, select the one you want the configuration for, and choose export on the menu.

This will give you the json for the object, but still doesn’t provide the latest used value, just what the initial configuration was:

[
    {
        "id": "30b7e8a5-7b92-401c-a938-b77d8551f80d",
        "case": "",
        "name": "SZ Person ID Builder",
        "uid": "sz_profile_uid_builder_value_builder",
        "class_name": "ValueBuilder"
    },
    {
        "id": "4824221f-66d4-45bc-8a54-f1950c735adc",
        "attributable_id": "9891353e-1570-4117-af33-c149645543a5",
        "attributable_type": "ValueBuilderHelper",
        "options": {
            "param": "000100"
        },
        "position": 2,
        "uid": "2a9486492c814533aceedee1f14fec21",
        "value_builder_id": "30b7e8a5-7b92-401c-a938-b77d8551f80d",
        "class_name": "ValueBuilderAttribute"
    },
    {
        "id": "9891353e-1570-4117-af33-c149645543a5",
        "name": "Incremented Number",
        "options": {},
        "uid": "incremental_integer",
        "class_name": "ValueBuilderHelper"
    },
    {
        "id": "4dad09ba-1b0e-423e-ab8a-ddc79e49f336",
        "attributable_id": "7126b7f0-fc2e-4c45-89a6-88a46a646c47",
        "attributable_type": "ValueBuilderHelper",
        "options": {
            "param": "P"
        },
        "position": 1,
        "uid": "ed6d0109a7564a4ca55efd023de8d7df",
        "value_builder_id": "30b7e8a5-7b92-401c-a938-b77d8551f80d",
        "class_name": "ValueBuilderAttribute"
    },
    {
        "id": "7126b7f0-fc2e-4c45-89a6-88a46a646c47",
        "name": "Static Value",
        "options": {},
        "uid": "static_value",
        "class_name": "ValueBuilderHelper"
    }
]

This could be used to load into another tenant via the System->Configuration Import option.

That said, manipulating these configuration items can cause problems as there isn’t any checking/validating on the import so it’s usually only used when transferring configuration from dev to prod, or prod back to dev without making any adjustments.

1 Like