Menu
SuiteCRM Pull Request Party hosted by SalesAgility
Welcome, Guest
Username: Password: Remember me

TOPIC: API REST 4.1 AOS_PRODUCT_CATEGORIES

API REST 4.1 AOS_PRODUCT_CATEGORIES 2 months 4 days ago #80350

  • teseo86
  • teseo86's Avatar
  • Offline
  • Junior Member
  • Martin Contreras
  • Posts: 27
  • Karma: 0
Hi,

I have a question: How can I get records from this module AOS_Product_Categories

function find_category_by_name($category){

$login_result = $this->call("login", $this->login_parameters, $this->url);
$session_id = $login_result->id;

$get_entry_list_parameters = array(

'session' => $session_id,
'module_name' => 'AOS_Product_Categories',
'query' => " name like '%".$category."%'",
'order_by' => "",
'offset' => "0",
'select_fields' => array(
'id'
),
'link_name_to_fields_array' => array(
),
'max_results' => '1',
'deleted' => 0,
'Favorites' => false,
);


$product_category = $this->call('get_entry_list', $get_entry_list_parameters, $this->url);


echo "<pre>";
print_r($product_category );
echo "</pre>";

}

I only get this result

Array
(
[session] => vouf8pvo7tddtbmcn0muas1i21
[module_name] => AOS_Product_Categories
[query] => name like '%yoga%'
[order_by] =>
[offset] => 0
[select_fields] => Array
(
[0] => id
)

[link_name_to_fields_array] => Array
(
)

[max_results] => 1
[deleted] => 0
[Favorites] =>
)

How can I get this records from this module AOS_Product_Categories

Best regards from Peru
The administrator has disabled public write access.

API REST 4.1 AOS_PRODUCT_CATEGORIES 2 months 3 days ago #82076

  • suitecrm_developer
  • suitecrm_developer's Avatar
  • Offline
  • Elite Member
  • Posts: 300
  • Thank you received: 32
  • Karma: 4
Hi,
Can you please check CRM logs after sending the API call to see if there is any error or not?
Thanks
Sohaib Majeed
SuiteCRM Developer
Upwork ==>> www.upwork.com/fl/sohaibmajeed?viewMode=1
Skype ==>> sohaib.majeed44
The administrator has disabled public write access.
Time to create page: 0.045 seconds
Powered by Kunena Forum