I am developing a batchloading schema for uploading template files. Pretty straightforward, here is my AML for a simple document load:
<Item type="Document" action="add">
<Item type="Document File" action="add">
<Item type="File" action="add">
However, I am trying to utilize template file containers for office connector templates. Template file container is a property on the document itemtype that lets a template document item to reference another template document item in order to reference and "use" its file. Useful if you want to have templates across multiple document classifications without adding the file individually to all those differently classified template doc items.
I have about 10 templates and about 20 document classifications, so wanted to create around 200 document items (templates) but have only 10 hold the actual files, and 190 just reference the 10 via template_file_container property.
A few questions:
- Am I able to accomplish this in one batchload procedure/one AML script?
- How do I write the AML for the latter document items to reference the file-holding document items? I imagine it is something like:<template_file_container></template_file_container>, but will the code require the actual item code (BFA3BE03444448F5916133D874712CF4 or something similar) or is there a way to use the name/item numbers? Or is there a way to easily find the item code of the created template-holding document items from earlier in the "batchloading process"? And if so, how would I go about writing that?
- What would be the most robust and simplest script I can write to accomplish my goals?