我尝试使用soap api xml将所有与ditetimerange条件匹配的数据提取到Archer平台。
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://archer-tech.com/webservices/">
<soapenv:Header/>
<soapenv:Body>
<web:ExecuteSearch><web:sessionToken>6227E03F9FDCD7449FC961C7B6940C2E</web:sessionToken>
<web:searchOptions><![CDATA[<SearchReport>
<PageSize>9999999</PageSize>
<DisplayFields>
<DisplayField name="Incident_ID">15483</DisplayField>
<DisplayField name="Alert Type">14760</DisplayField>
<DisplayField name="Summary">14025</DisplayField>
<DisplayField name="Alert_Source">15529</DisplayField>
<DisplayField name="Creation Date">15518</DisplayField>
<DisplayField name="Last Updated">15481</DisplayField>
<DisplayField name="Application">15494</DisplayField>
<DisplayField name="Title">15488</DisplayField>
<DisplayField name="Urgency">15485</DisplayField>
</DisplayFields>
<Criteria>
<Filter>
<Conditions>
<DateTimeRangeFilterCondition>
<Field name="Last Updated">15481</Field>
<BeginDate>05/16/2019</BeginDate>
<BeginTime>06:00 am</BeginTime>
<EndDate>05/16/2019</EndDate>
<EndTime>08:45 am</EndTime>
<TimeZoneId>Romance Standard Time</TimeZoneId>
<IsTimeIncluded>TRUE</IsTimeIncluded>
</DateTimeRangeFilterCondition>
</Conditions>
</Filter>
<ModuleCriteria>
<Module name="Incidents">445</Module>
</ModuleCriteria>
</Criteria>
</SearchReport>]]></web:searchOptions>
<web:pageNumber>1</web:pageNumber>
</web:ExecuteSearch>
</soapenv:Body>
</soapenv:Envelope>
问题在于开始日期条件仅考虑了创建日期字段,而不考虑上次更新时间。 结果,我没有正确的结果。 如果有人有主意,我就是接受者:)
预先感谢您的帮助
答案 0 :(得分:0)
I finaly find a way to solve my issue.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://archer-tech.com/webservices/">
<soapenv:Header/>
<soapenv:Body>
<web:ExecuteSearch>
<web:sessionToken>6227E03F9FDCD7449FC961C7B6940C2E</web:sessionToken>
<web:searchOptions><![CDATA[<SearchReport>
<PageSize>9999999</PageSize>
<DisplayFields>
<DisplayField name="Incident_ID">15483</DisplayField>
<DisplayField name="Alert Type">14760</DisplayField>
<DisplayField name="Summary">14025</DisplayField>
<DisplayField name="Alert_Source">15529</DisplayField>
<DisplayField name="Creation Date">15518</DisplayField>
<DisplayField name="Last Updated">15481</DisplayField>
<DisplayField name="Application">15494</DisplayField>
<DisplayField name="Title">15488</DisplayField>
<DisplayField name="Urgency">15485</DisplayField>
</DisplayFields>
<Criteria>
<Filter>
<Conditions>
<DateRangeFilterCondition>
<Operator>Between</Operator>
<Field>15481</Field>
<BeginValue>2019-05-16T06:00:00</BeginValue>
<EndValue>2019-05-16T09:00:00</EndValue>
<TimeZoneId>Romance Standard Time</TimeZoneId>
<IsTimeIncluded>TRUE</IsTimeIncluded>
</DateRangeFilterCondition>
</Conditions>
</Filter>
<ModuleCriteria>
<Module name="Incidents">445</Module>
</ModuleCriteria>
</Criteria>
</SearchReport>]]></web:searchOptions>
<web:pageNumber>1</web:pageNumber>
</web:ExecuteSearch>
</soapenv:Body>
</soapenv:Envelope>