SG
10 years agoFrequent Visitor
Status:
New Idea
SOAP API LoadByCriteria request select specific fields
Hi,
I think a good addition to the the SOAP API would be the ability to select specific fields when doing a request.
For example, when using the Bugs_LoadByCriteria request we could specified only the field that we want. This will help a lot to reduce the time the query can take and help to have a much clearer response.
Here we would select the Title and the StatusCode
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:prag="http://www.pragmaticsw.com/">
<soapenv:Header/>
<soapenv:Body>
<prag:Bugs_LoadByCriteria>
<!--Optional:-->
<prag:AuthenticationData>
<!--Optional:-->
<prag:AppCode>?</prag:AppCode>
<prag:DeptId>?</prag:DeptId>
<prag:ProjId>?</prag:ProjId>
<prag:UserId>?</prag:UserId>
<!--Optional:-->
<prag:PassCode>?</prag:PassCode>
<!--Optional:-->
<prag:ProjIds>
<!--Zero or more repetitions:-->
<prag:int>?</prag:int>
</prag:ProjIds>
</prag:AuthenticationData>
<!--Optional:-->
<prag:Fields>
<prag:Field>Title</prag:Field>
<prag:Field>StatusCode</prag:Field>
</prag:Fields>
<!--Optional:-->
<prag:Condition>?</prag:Condition>
<!--Optional:-->
<prag:Sorting>?</prag:Sorting>
<prag:PageSize>?</prag:PageSize>
<prag:PageNumber>?</prag:PageNumber>
</prag:Bugs_LoadByCriteria>
</soapenv:Body>
</soapenv:Envelope>