Previous Topic: pdm_text_cmd--Text API Command Line Interface

Next Topic: pdm_uconv--Convert Local Charset to UTF-8

Input Examples

pdm_text_cmd is the command line interface for the Text API that you can use to create and update various objects such as requests, change orders, issues, assets, and contacts.

Example: Use an Input File to Create an Issue

The following example demonstrates how to use a pdm_text_cmd input file to create an issue:

%DESCRIPTION=This is my Test.
%PRIORITY=3

To process this file, assuming its full path is c:\input.txt, issue the following command:

pdm_text_cmd -t Issue -u user01 -f c:\input.txt

Example: Use an Input File to Update an Issue

The following example demonstrates an input file to update issue 123 to a priority of 2:

%SEARCH=ISSUE_ID
%ISSUE_ID=123
%PRIORITY=2

To process this file, assuming its full path is c:\update.txt, issue the following command:

pdm_text_cmd -t Issue -o UPDATE_ONLY -u user01 -f c:\update.txt

Example: Use an Input File to Create Multiple Requests

The following example demonstrates creating multiple requests with one input file. This command can be helpful creating test data on a test system.

%DESCRIPTION=This is Test 1.
%PRIORITY=3
%%%%%
%DESCRIPTION=This is Test 2.
%PRIORITY=2
%%%%%
%DESCRIPTION=This is Test 3.
%PRIORITY=None

To process this file, assuming its full path is c:\testdata.txt, issue the following command:

pdm_text_cmd -t Request -u user01-f c:\testdata.txt