Can I add fields in related search (API POST search) - API Version 11

Hi,

I use the API /<module>/filter POST to retrieve Leads and Contacts by ProspectList

https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_10.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_POST/

$searchParams = [
	'filter' => [
		['list_type' => ['$equals' => 'unique_campaign']],
		['campaigns.id' => ['$in' => $campaignList]],
	],
	'max_num' => 100, 
	'offset' => 0,
	'fields' => [
		'id', 
		'name',
		'n2g_id',
		'campaigns',
		'contacts',
		'leads',

	]
];

The result is like this:

  'id' => '51545936-33d2-11eb-8063-005056b0b4f5',
   'name' => 'Teilnehmer mit Touchpoint - CloudExpo_Webinar 2_202012',
   'date_modified' => '2021-10-13 10:05:21',
   'contacts' => 
  (object) array(
     'next_offset' => -1,
     'records' => 
    array (
      0 => 
      (object) array(
         'id' => '4559cae7-74b9-596b-0be2-56b5035b75cb',
         'date_modified' => '2021-11-18 16:47:49',
         '_acl' => 
        (object) array(
           'fields' => 
          (object) array(
          ),
        ),
         '_module' => 'Contacts',
      ),
      ...

I need for my process the field mkto_id and don't want additional API calls. Is there a way to add the fields leads.mkto_id and contacts.mkto_id to this result?

Regards
Harry

Parents Reply Children
No Data