Pass XValues to a Transformation activity

There are two different ways that you can pass XValues to a Transformation activity.

  1. Input variables for capture activities are available in a Transformation Designer script.

    For example, if you consume an input variable called test, you can access this value in a Transformation Designer script as pXDoc.Fields(1).Text = pXDoc.ParentFolder.XValues.ItemByName("KTA.InputVariable.test").Value.

  2. The text extension of a document. If you give the text extension the XValue prefix, that text extension is available in Transformation Designer script as an XValue.

    For example, if you call the name XValue.MyName, then you can use the following code in the Transformation Designer script.

    pXDoc.Fields(0).Text = pXDoc.XValues.ItemByName("MyName").Value