Retrieving profile using API by two fields | Community
Skip to main content
Level 3
November 23, 2022
Solved

Retrieving profile using API by two fields

  • November 23, 2022
  • 1 reply
  • 787 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by bisswang

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-resource/configuring-filter-definition.html?lang=en

1 reply

bisswangAdobe EmployeeAccepted solution
Adobe Employee
November 23, 2022

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-resource/configuring-filter-definition.html?lang=en