Hi All,
Apologies if there is already an answer for this somewhere - but I haven't yet been able to find it!
I'm writing a program in vb.net trying to pull some information from our aras database. Starting with an ECO number, I'm trying to get the date that one (any!) of the activities on the workflow was signed off.
Ideally, I want a query something like this:
Dim qryItem As Aras.IOM.Item = MyInnovator.newItem("Simple ECO", "get")
qryItem.setProperty("item_number", "ECO-1234")
Dim results As Aras.IOM.Item = qryItem.apply()
Dim signoffdate as string
signoffdate = results.getItemByIndex(0).getRelationships...................... etc etc, until I can get to the activity signoff date
Unless there is a better way to do it?
I did find this post:
http://www.aras.com/Community/forums/t/4146.aspx
which gives me the AML for accessing the workflow process activity:
<AML>
<Item type="ECR" action="get">
<item_number>Your ECR Number here</item_number>
<Relationships>
<Item type="Workflow" action="get">
<related_id>
<Item type="Workflow Process" action="get">
<Relationships>
<Item type="Workflow Process Activity">
<related_id>
<Item type="Activity" action="get">
<state>Active</state>
</Item>
</related_id>
</Item>
</Relationships>
</Item>
</related_id>
</Item>
</Relationships>
</Item>
</AML>
But I can't get the same sort of thing to work from VB.net..
Any pointers would be greatly appreciated!
Thanks!