我正在寻找一种使用SugarCRM应用程序接口在CommentLog中创建条目的方法。我用PHP和rest-php-client进行了第一次尝试,但不幸的是,我找不到写或读CommentLog的方法。
有了邮递员,我可以验证自己,使用令牌,read/create/update线索或帐户。不幸的是,例如,我不能在CommentLog中为一个案例创建条目。
我使用的端点是$url/rest/v10/CommentLog/$CaseId (POST)或$url/rest/v10/CommentLog (GET),booth没有任何成功。
我在/rest/v10/help上看到了一个addComment函数,但我不知道它是如何工作的。
发布于 2021-10-20 11:39:58
试试这样的东西;
在此处替换rest/v10/Bugs/01114102-319a-11ec-b680-acde48001122和id (<- )
正文:
{
"commentlog_link": {
"create": [{"entry": "The comment goes here",
"_link": "commentlog_link",
"deleted": false}],
"add": [],
"delete": []
}
}已使用Sugar版本11.0.2进行验证
https://stackoverflow.com/questions/69353255
复制相似问题