The IAPI utility is a tool that you can use to send individual method calls to the server.
Start IAPI:
iapi32/iapi [-Uusername|-ENV_CONNECT_USER_NAME] [-Ppassword|-ENV_CONNECT_PASSWORD] [-Llogfile] [-Rinputfile] [-Ddomain] [-X] repository|-ENV_CONNECT_DOCBASE_NAME
-X Allows prompt for domain
Command:
$logfile Output to the specified file
@scriptfile Reads input from the specified file
%scriptfile Output a script
? Allows you to enter a query or collection ID and formats the output as a table
The ? command allows you to enter a DQL SELECT statement in IAPI. When used with a SELECTstatement, the command is the equivalent of a Read query method. The syntax is:
API> ?,c,select r_object from dm_document
You can also use the ? command to retrieve a collection’s content in one block. For example, suppose you issue a readquery method, which returns a collection:
API> readquery, c, select r_object_id,object_name from dm_document
….
q0
API> ?,c,q0
Entering method calls:
create,s0,dm_document
setfile,s0,last,’/home/test.doc,1′,text
set,s0,last,object
The keyword last refers to the last created,fetched,checked in/out,or retrieved object ID(in this case, the folder ID).
Entering comments:
Enter a comment in an IAPI session by preceding it with the pound sign (#). This is useful when you want to use scripts with IAPI.