我有RightNow SOAP API的问题,特别是请求RunAnalyticsReport,代码如下。当我将报告设置为返回固定期间时,导出工作正常,例如4或6个小时。当我将报告设置为需要开始日期(在这种情况下为AlertClosedAfter)时,它会超时。然后我在禁用开始日期要求后重新运行它,它只返回超时后创建的行,无论我是否设置了任何过滤器(我很确定我的过滤器是错误的,所以如果你能帮助我,这将是完美的)。所以现在每次运行它都只会在超时后返回行。你们有什么想法吗?提前谢谢!
以下是代码:
<?xml version="1.0"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:v1="urn:messages.ws.rightnow.com/v1_2"
xmlns:v11="urn:base.ws.rightnow.com/v1_2"
xmlns:ns2="urn:objects.ws.rightnow.com/v1_2"
xmlns:ns3="urn:generic.ws.rightnow.com/v1_2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns4="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<SOAP-ENV:Header>
<v1:ClientInfoHeader>
<v1:AppID>Create</v1:AppID>
</v1:ClientInfoHeader>
<ns4:Security SOAP-ENV:mustUnderstand="1">
<UsernameToken xsi:type="ns4:UsernameToken">
<Username>username</Username>
<Password>password</Password>
</UsernameToken>
</ns4:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<n0:GetResponse xmlns:n0="urn:messages.ws.rightnow.com/v1_2" xmlns:n2="urn:base.ws.rightnow.com/v1_2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:n1=
"urn:objects.ws.rightnow.com/v1_2">
<n0:RNObjectsResult>
<n0 :RNObjects xsi:type="n1:AnalyticsReport">
<n2:ID id="103151"></n2:ID>
<n1:Filters xsi:type="n1:AnalyticsReportFilter">
<n1:Name>AlertsClosedAfter</n1:Name>
<n1:Operator>
<n2:ID id="6"></n2:ID>
<n2:Name>></n2:Name>
</n1:Operator>
<n1:Values>29/01/2015 13:40</n1:Values>
<n1:Attributes>
<n1:Editable>true</n1:Editable>
<n1:Required>false</n1:Required>
</n1:Attributes>
<n1:DataType>
<n2:ID id="4"></n2:ID>
<n2:Name>DATETIME</n2:Name>
</n1:DataType>
<n1:Prompt>AlertsClosedAfter</n1:Prompt>
</n1:Filters>
<n1:Filters xsi:type="n1:AnalyticsReportFilter">
<n1:Name>Lead Rejection Reason</n1:Name>
<n1:Operator>
<n2:ID id="1"></n2:ID>
<n2:Name>=</n2:Name>
</n1:Operator>
<n1:Values>~any~</n1:Values>
<n1:Attributes>
<n1:Editable>true</n1:Editable>
<n1:Required>false</n1:Required>
</n1:Attributes>
<n1:DataType>
<n2:ID id="1"></n2:ID>
<n2:Name>MENU</n2:Name>
</n1:DataType>
<n1:Prompt>Lead Rejection Reason</n1:Prompt>
</n1:Filters>
</n0:RNObjects>
</n0:RNObjectsResult>
</n0:GetResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
答案 0 :(得分:0)
我相信日期的格式是:
<year-month-day>T<24 hour time>Z
例如:
2015-01-29T13:40:00Z
将您的AlertsClosedAfter过滤器值更改为类似的内容。