Forum Discussion
Former_Member
9 years agoAccelerator III
Hello,
I have executed the code writen by you:
Item docItem = inn.applyAML(“<AML>
<Item action=’get’ type=’Document’>
<item_number>{DOCUMENT_NUMBER}</item_number>
<Relationships>
<Item action=’get’ type=’Document File’ />
</Relationships>
</Item>
</AML>”);
Item files = docItem.getItemsByXPath( “/Item[@type=’File’]” );
int fcount = files.getItemCount();
for( int i = 0; i < fcount; i++ )
{
Item file = files.getItemByIndex( i );
Item result = file.checkout( “c:\\temp” );
if( result.isError() )
{
Console.WriteLine( string.Format( “Failed to checkout file ‘{0}'”, file.getProperty( “filename” ) ) );
}
}
with a real document name exists in my database. But i don't have any results ( no Failed to checkout file And no files downloaded in the temp folder)
Should I create the folder "temp" or he will be created automatically?
thank you very much