Expand my Community achievements bar.

SOLVED

Retrieving profile using API by two fields

Avatar

Level 3

Hi all,

 

In the documentation of Adobe, it is explained how to get a profile using an API by the criteria of a field. This is the example, using the field "LastName"

 

-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/profile/byText?text=Miller&filterType=lastName \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'

 Do you know if it is possible doing that get using two fields instead of one? The problem that we have is that our profile primary key is two fields.

 

Thanks

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi,

if you need to search for 2 specific fields, recommended approach is to create a custom filter.

Then you can use a specific URL for this filter and provide the different parameters

 

GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/<resourceName>/by<customFilterName>?<customFilterparam>=<customFilterValue>

 

Documentation reference:

https://experienceleague.adobe.com/docs/campaign-standard/using/developing/adding-or-extending-a-res...

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

Hi,

if you need to search for 2 specific fields, recommended approach is to create a custom filter.

Then you can use a specific URL for this filter and provide the different parameters

 

GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/<resourceName>/by<customFilterName>?<customFilterparam>=<customFilterValue>

 

Documentation reference:

https://experienceleague.adobe.com/docs/campaign-standard/using/developing/adding-or-extending-a-res...