robos - Monday, June 2, 2014 3:01 AM:
Can you help me with minimal AML needed to open a new Project ? I tryed with this one, but it looks I can't handle WBS in a proper way. Probably it should be entered/created as dependency.
kentonv - Wednesday, June 4, 2014 4:06 PM:
Unfortunately, most of the code for project creation (from a template) is client-side, so it is difficult to create a project that includes a template.
If you are not looking for template capability, you can modify the code as below to create the project with a single wbs item.
The AML you show would not work since the <wbs_id> is expecting a real new wbs item id. It is also not possible (in my testing) to include the WBS Element in the <wbs_id> tag, since the order of events causes an error. In a method environment, you could call the first <Item> tag, retrieving the ID, and use that in the second call. Otherwise generating an ID from a GUID is relatively simple.
<Item type="WBS Element" action="add" id="FA71468937574007A694FC914B249862">
<name>Test Project</name>
<is_top>1</is_top>
</Item>
<Item type="Project" action="add">
<name>Test Project</name>
<date_start_sched>2014-07-01</date_start_sched>
<project_number>1194</project_number>
<date_due_sched>2014-07-31</date_due_sched>
<scheduling_type>Forward</scheduling_type>
<wbs_id>FA71468937574007A694FC914B249862</wbs_id>
</Item>
robos - Thursday, June 5, 2014 6:44 AM:
Thank's for your valuable input,
I checked now the client side code and I saw that the whole logic is there as you said.
I had template capability in my mind