没有从Odata获取api_service_response

2020-08-20 12:22发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)大家好, 在我的Chat Bo...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


大家好,

在我的Chat Bot API服务配置中,我正在执行以下语句,但未返回任何结果。

{{api_service_response.mydata.body.d.Outpo}}

如果我将语句更改为{{api_service_response.mydata.body.d。}},那么当我只查找一个字段" Outpo"时,便会获得所有记录。

{" __ count":" 1","结果":[{" __ metadata":{" id":" https://ccqapp.bgroup.net/sap/opu/odata/b/TS_JITOM_SERVICE_SRV/JitomDataSet(Outpo ='0000802302',Matnr ='7137225-09')"," uri":" https://ccqapp.bgroup.net/sap/opu/odata/b/TS_JITOM_SERVICE_SRV/JitomDataSet( Outpo ='0000802302',Matnr ='7137225-09')"," type ":" TS_JITOM_SERVICE_SRV.JitomData"}," Outpo":" 0000802302"," Prodn":" 0044983285"," Prvbe" :" 300D-F16DS"," Seqnr":""," Lifnr":" 16042411"," Intst":" 318"," Cdatum":"/img/Date(1585267200000)/"," Czeit":" PT01H24M13S" ," Rdatum":"/img/Date(1585526400000)/"," Rzeit":" PT09H00M00S"," Matnr":" 7137225-09"," Pknum":" 212202"}]}

您知道这种情况吗?

1条回答
追夢秋陽
2020-08-20 12:41 .采纳回答

米尔顿,你好

感谢您的提问,并分享了足够的详细信息。 请使用{{api_service_response.mydata.body.d.results。[0] .Outpo}},因为属性" Outpo"是结果(数组)实体的第一个元素(0)的一部分。

最诚挚的问候,

基督徒

一周热门 更多>