我们使用 Netsuite 作为我们的 CRM 应用程序。
我们已经在我们的网站上构建了一个界面,用于向现有支持案例添加消息。
我正在使用
REST API
和 suiteQL API
获取/发布数据到 netsuite。我做了一些研究,发现只有这些查询:
SELECT * FROM message WHERE activity = '[supportcasenumber]' ORDER BY datetime DESC
这给了我以下结果:
{
"links": [],
"attachments": "4729",
"author": "-4",
"authoremail": "[email protected]",
"datetime": "18/12/2019",
"emailed": "T",
"entity": "375",
"hasattachment": "T",
"htmlmessage": "T",
"id": "1512",
"incoming": "T",
"internalonly": "F",
"lastmodifieddate": "18/12/2019",
"message": "This is my message with attachment"
}
我获取附件值并运行以下查询:
SELECT * FROM file WHERE id = '4729'
这给了我以下结果:
{
"links": [],
"addtimestamptourl": "F",
"createddate": "18/12/2019",
"filesize": "5153",
"filetype": "JPGIMAGE",
"folder": "595",
"hideinbundle": "F",
"id": "4729",
"iscompanywidereadaccess": "F",
"isinactive": "F",
"islink": "F",
"isonline": "F",
"lastmodifieddate": "18/12/2019",
"name": "image001.jpg",
"url": "/core/media/media.nl?id=4729&c=999999&h=BWjJpaxXKjlicRdbqD5FIxhsuBj7tFYwqzRcCwLuJs_760N4"
}
附件的
url
仅在您登录netsuite时有效。然后我也希望能够在新消息中添加附件。
我已经向
/message
(消息端点文档)发送了一个帖子请求
没有关于如何添加附件的描述,有人知道这是否可能或如何做吗?