Hi, I have went through Documentum API Reference Guide. I'm able to execute single line commands in DA and DqMan as well.
I need to export bulk contents from DocBase using API Scripts. I tried below script. Its throwing some error message. Can you please help me?
query_str = "select r_object_id, ots_doc_number, object_name, a_content_type from literature_document where title is not NULLSTRING and r_is_virtual_doc = 0 and i_latest_flag = 1"
query_id = dmAPIGet("query,"session",query_str")
while( dmAPIExec("next,"session", query_id") > 0 )
{
doc_id = dmAPIGet("get,"session","query_id",r_object_id")
doc_num = dmAPIGet("get,"session","query_id",ots_doc_number")
obj_name = dmAPIGet("get,"session","query_id",object_name")
cnt_typ = dmAPIGet("get,"session","query_id",a_content_type")
name = S:\Export_Lit\ "obj_name" _ "doc_num" ."pdf"
getfile,c,doc_id,name,cnt_typ
}
Thank you so much !!