Hi to all, i have to do a get_etry_list on accounts_cstm but when i execute it give me {“name”:“Module Does Not Exist”,“number”:20,“description”:“This module is not available on this server”}. How can query a custom module created by suitecrm itself?
I don’t know much about API, but sometimes the problem with module names is just the plurals (using Contact when it should be Contacts, or the other way around).
Maybe if you post your exact code it’s easier to help…
function create_json_get_entry($sessId,$id){
$entryArgs=array(
'session' => $sessId,
'module_name' => 'Accounts_cstm',
'query' => "WHERE id_csv_c =".$id,
'offset' => 0,
);
return $entryArgs;
}
Again - I never even used the API, so I’m just guessing, but…
Accounts_cstm doesn’t look like a custom module, it looks like the table that holds the custom fields of the normal Accounts module.
So I believe the answer is to simply query the normal Accounts module, and then try to get to the fields you need, which are probably named like
field1_c
filed2_c
etc
Hi,
The module name should be Accounts if you want to get a list of accounts.
Your query variable should not contain WHERE. This will be added by the get_entry_list API.