AML search to return only the count of object corresponding

Hi community,

I have a request to get from an AML request only the number of item corresponding to the AML request.

In Odata and SQL it is ok but I cannot find the equiavlent.

I precise that I do not want to create a method to count the items from a tab.

For example I want to get the number of the Parts with status = Draft

Best regards,

Hadrien

Parents Reply
  • Now as the details are very clear, I can suggest one more approach - use generic method as Action.

    Write server side method in ARAS 'getItemCountFromItemType' in ARAS which can accept parameter as <ItemTypeName> and return only the total count of items. 

    Above code resides in ARAS.

    Externally you can just send a SOAP request with below AML

    <AML>
       <Item type="user" action="getItemCountFromItemType">
       <ItemTypeName>user</ItemTypeName>
       </Item>
    </AML>

    This will return only total count of users.

Children