Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个服务标注(例如:)myCallout,它在变量中返回其响应(例如:)myCalloutResponse。如何在 javascript 策略中访问标注的正文?我尝试context.getVariable("myCallout.myCalloutResponse")了其他一些,但无法使其正常工作。谢谢
myCallout
myCalloutResponse
context.getVariable("myCallout.myCalloutResponse")
context.getVariable("myCalloutResponse.content") 应该为您提供有效负载。查看响应对象上可用的其他变量- 以提取您需要的数据。