Dim inno as Innovator = getInnovator()
Dim docItem as Item = Me.newItem("Document","get")
Dim docNumber as String = Me.getProperty("item_number")
Dim AML_to_getProjectName as String = "<AML>"+
"<Item type='GRIL Project Document' action='get' select='source_id'>" +
"<related_id>" +
"<Item type='Document' action='get'>" +
"<item_number>"+ docNumber +"</item_number>" +
"</Item>" +
"</related_id>" +
"<source_id>"+
"<Item type='GRIL Project' action='get' select='_project_name,item_number'></Item>" +
"</source_id>" +
"</Item>" +
"</AML>"
Dim ResultProjectName as Item = inno.applyAML(AML_to_getProjectName)
CCO.Utilities.WriteDebug("ResultProjectName",ResultProjectName.ToString())
below is the error I get in ResultProjectName file.
<SOAP-ENV:Envelope xmlns:SOAP-ENV="">schemas.xmlsoap.org/.../"><SOAP-ENV:Body><SOAP-ENV:Fault xmlns:af="">www.aras.com/.../faultcode><faultstring><![CDATA[No items of type GRIL Project Document found.]]></faultstring><detail><af:legacy_detail><![CDATA[No items of type GRIL Project Document found.]]></af:legacy_detail><af:legacy_faultstring><![CDATA[No items of type 'GRIL Project Document' found using the criteria:
<Item type="GRIL Project Document" action="get" select="source_id"><related_id><Item type="Document" action="get"><item_number /></Item></related_id><source_id><Item type="GRIL Project" action="get" select="_project_name,item_number" /></source_id></Item>
]]></af:legacy_faultstring></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
How should I get the Parent Item Object at the time of creation of child Item, is there any method/event