Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Sugar API to fetch data from custom table

I want to fetch records just like mysql query using REST API of Sugar CRM.

I found a method to get records form custom module like below. Get list of records from SugarCRM module using REST API: http://scriptbaker.com/get-list-of-records-from-sugarcrm-module-using-api/

My problem is I don't have module with the table I am trying to fetch records. Is there any way .???

like image 453
Jafer.balti Avatar asked Oct 31 '22 15:10

Jafer.balti


1 Answers

It is not possible to get data from table which is not actually a module. The table does not exist in the SugarCRM models and configs, so the API cannot access it.

You can create a separate file to get the data from the table using SugarCRM db object.

If you give me some more detail info I can prepare such file for you.

like image 70
Yavor Atanasov Avatar answered Nov 09 '22 20:11

Yavor Atanasov