createObjectDef()

Purpose

Creates a new object definition and its components from an XML document.

See Object XML Definition for a description of the DataObjectDef XML node and an example of its use.

Syntax

createObjectDef(string sessionId, string xmlString)

Parameters

sessionId

A string containing the session ID obtained at log in.

xmlString

An XML string describing the object in an DataObjectDef node, along with fields and relationships.

Output

Status text: Object ABC has been created

Permissions Required

All metadata methods require administrative privileges, regardless of the view, edit, create and delete permissions set on the application or object. Establish the session by logging in with credentials for an administrative user.

Example

This example shows how to call createObjectDef():

String infoMessage = binding.createObjectDef(sessionId, xmlString);