我通过 RightNow使用SOAP。
使用QueryCSV
选项,我可以获得很多信息(例如:关于意外事件的SELECT * FROM Incident WHERE ...
),但我不知道如何获得有关外联活动的信息。
我在RightNow论坛上看到我可以从ma_trans
表中获得这类信息,但是我不知道如何从这个表中选择数据。
外展活动选项卡,它应该显示来自ma_trans表的数据。
我尝试过不同的方法,但我总是得到这样的反应:
请求:
SELECT * FROM ma_trans
响应:
...
<n0:RequestErrorFault xmlns:n0="urn:faults.ws.rightnow.com/v1_3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<n0:exceptionCode>INVALID_REQUEST</n0:exceptionCode>
<n0:exceptionMessage>no such table: ma_trans</n0:exceptionMessage>
</n0:RequestErrorFault>
...
或
请求:
SELECT Contact.ma_trans FROM Contact
响应:
...
<n0:RequestErrorFault xmlns:n0="urn:faults.ws.rightnow.com/v1_3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<n0:exceptionCode>INVALID_REQUEST</n0:exceptionCode>
<n0:exceptionMessage>Non-existent column: 'ma_trans'</n0:exceptionMessage>
</n0:RequestErrorFault>
...
如何获得有关外展活动的信息,以及如何从这个ma_trans
表中获取数据?
发布于 2018-03-27 12:00:43
ma_trans
表不通过Connect或ROQL公开。transactions
是通过ROQL以及其他一些“托管表”公开的,您可以在任何公开连接API(即PHP、REST等API)的服务文档中查看这些表。
您可以通过创建一个报表来查询所需的数据,然后使用runAnalyticsReport方法从报表中获取数据,从而获得这些数据。但是,由于ma_trans
可以包含大量数据,所以请确保您的报告被正确过滤,以免超出运行时或数据阈值限制。
https://stackoverflow.com/questions/49490662
复制相似问题