Jump to content

eatingApiDocs

Members
  • Content Count

    1
  • Joined

  • Last visited

Kudos

  1. Upvote
    eatingApiDocs gave kudos to TomasP in EMA API - GetReports ReportName?   
    Hello,
    We reached out to our product manager and he recommends the following:
     
    The keyword for ReportName is “ERA Usage”, however, we do not recommend to use GetReport call to get info about usage.
    We recommend to use “Search” where the request could look like this:
    (use your own LoginID instead of LoginID=xxx and real CompanyID instaed of CompanyID=123456)
     
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:msp="http://schemas.datacontract.org/2004/07/MSPApi.Services.v2015_1.Requests" xmlns:models="http://schemas.datacontract.org/2004/07/MSPApi.Services.v2015_1.ViewModels" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <soapenv:Header/> <soapenv:Body> <tem:Search> <tem:request xmlns:models="http://schemas.datacontract.org/2004/07/MSPApi.Services.v2015_1.ViewModels" > <msp:LoginID>xxx</msp:LoginID> <msp:Token>xxx</msp:Token> <msp:OrderBy> <models:SearchOrderBy> <models:Column>Product.Name</models:Column> <models:Descending>true</models:Descending> </models:SearchOrderBy> </msp:OrderBy> <msp:PageNumber>1</msp:PageNumber> <msp:PageSize>10000</msp:PageSize> <msp:Criteria i:type="models:SearchGroup" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" > <models:Criterias> <models:SearchCriteria i:type="models:NumericSearchParameter"> <models:Column>Company.Company Id</models:Column> <models:ComparisonType>IS</models:ComparisonType> <models:Value>123456</models:Value> </models:SearchCriteria> <models:SearchCriteria i:type="models:SearchGroup"> <models:Criterias> <models:SearchCriteria i:type="models:DateSearchParameter"> <models:Column>Snapshot Date</models:Column> <models:ComparisonType>ON_OR_AFTER</models:ComparisonType> <models:Value>2019-08-01</models:Value> </models:SearchCriteria> <models:SearchCriteria i:type="models:DateSearchParameter"> <models:Column>Snapshot Date</models:Column> <models:ComparisonType>ON_OR_BEFORE</models:ComparisonType> <models:Value>2019-09-01</models:Value> </models:SearchCriteria> </models:Criterias> <models:LogicType>AND</models:LogicType> </models:SearchCriteria> </models:Criterias> <models:LogicType>AND</models:LogicType> </msp:Criteria> <msp:SearchID>10006</msp:SearchID> </tem:request> </tem:Search> </soapenv:Body> </soapenv:Envelope>  
×
×
  • Create New...