简体   繁体   中英

404 Error with SugarCRM REST API Export

The SugarCRM REST API Docs suggest that a request can made to export a particular module to CSV using a GET Request:

"GET //export export Returns a record set in CSV format along with HTTP headers to indicate content type."

However, when I try this - eg with /Accounts/export I get a 404 error and the following response:

{
  "error":"not_found",
  "error_message":"Could not find record: export in module: Accounts"
}

It is v10 of the API and my other work so far with it so far has worked OK.

Can anybody help with this?

Specifically, if I have a custom module name XXXX, what would the REST request have to look like to export this (ie download/extract all entries)?

rest/v10/Accounts/export would result in retrieving an Account with the ID "export". rest/v10/Accounts/export/your_id_here on the other hand might be what you are looking for :-)

Their documentation at rest/v10/help is also very useful

仍然不确定如何使用// export REST API端点,但是我意识到我可以使用以下命令导出自定义模块:

http://BASE_URL/rest/v10/CUSTOM_MODULE_NAME?max_num=100&offset=0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM