vikramjain23 - Tuesday, September 13, 2011 7:17 AM:
Hi,
I am trying to upload a File using the following AML query....
<AML>
<Item type="File" action="add">
<filename>Test.txt</filename>
<checkedout_path>c:Aras-WS</checkedout_path>
<file_type>7018069874DA4B47820868C4B21395BC</file_type>
<actual_filename>c:Aras-WSTest.txt</actual_filename>
<Relationships>
<Item type="Located" action="add">
<related_id>67BBB9204FE84A8981ED8313049BA06C</related_id>
</Item>
</Relationships>
</Item>
</AML>
it creates the File Item instance and relationships but the physical file is not upload. The file_size property is also not set.
Any idea or comments, if one could do File upload/download operations using AML ???
With Best Regards,
Vikram Jain
justinlee - Wednesday, September 28, 2011 3:39 AM:
Hi Vikram Jain
I think you can use xml strinh the same below
string Xml = "";
Xml +="<AML>";
Xml +="<Item type="File" action="add" id ="67BBB9204FE84A8981ED8313049BA06C">";
Xml +="<filename>Test.txt</filename>";
Xml +="<checkedout_path>D:</checkedout_path>";
Xml +="<file_type>7018069874DA4B47820868C4B21395BC</file_type>";
Xml +="<actual_filename>D:\Test.txt</actual_filename>";
Xml +="<Relationships>";
Xml +="<Item type="Located" action="add">";
Xml +="<related_id>67BBB9204FE84A8981ED8313049BA06C</related_id>";
Xml +="</Item>";
Xml +="</Relationships>";
Xml +="</Item>";
Xml +="</AML>";
you must set id File to relationship with Located Item
ps: sorry my English
Justin Lee