Retrieving profile using API by two fields | Community
Skip to main content
Level 3
Nov 23, 2022 11:06 AM UTC
Solved

Retrieving profile using API by two fields

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.
bisswangAccepted solution
Employee
Nov 23, 2022 12:42 PM UTC

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

bisswangAccepted solution
Employee
Nov 23, 2022 12:42 PM UTC

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

Translate