Hi,
I use the API /<module>/filter POST to retrieve Leads and Contacts by ProspectList
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$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:
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
'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