Generating an object schema from the output variable payload

When developing a script, you can drill-down to the Data Catalog’s Metadata Wizard. Here you can register an object schema of the payload that was created during the testing phase of the script.

Using a single payload output as a sample file within the metadata wizard:

  1. Switch to the Testing tab in the Scripting details page.
  2. In the Input Variables area, paste or upload the input data for a particular input variable.
  3. Click Test.
  4. After the test is completed, click the More ... icon above the output variable payload.
  5. Select Generate Metadata.

    You can only register the metadata for output payload of type String.

    After generating Metadata, the Data Catalog schema generation wizard starts.

  6. The first step of the wizard is - Create Schema.
    The Generating a schema from sample data check box is selected and the output variable payload is pasted into Sample Data area.
  7. The next step of the wizard is called Object Information.
    The Object Name is specified by default with the Script’s output variable name. You can update or change the Object Name. The Object Type is defined based on uploaded payload.
  8. To complete the schema generation, follow the steps that are described in Generating a schema from sample data.
  9. After you have completed all wizard steps click Finish to request the schema generation.
  10. You are returned to the Scripting details page, a message informs you about the metadata registration status.
    You can always cancel the metadata registration at any step of the wizard by clicking Cancel. You are returned to the Scripting details page and a message informs you that the metadata registration was canceled.