Get profile through API filtering by custom field | Community
Skip to main content
Level 3
November 17, 2022
Question

Get profile through API filtering by custom field

  • November 17, 2022
  • 1 reply
  • 1032 views

Hi,

 

We have a custom field, "fullName", that we have created extending profile resource. We want to to get profile, filtering by that field through API. According to Adobe documentation, we have created the following endpoint.

 

https://mc.adobe.io/{tenant}/campaign/profileAndServicesExt/profile/byText?cusFullName=xxx&filterType=FullName

 

Being xxx, the variable that we insert to look for.

 

We just have one profile that meet the filter requeriment so we expect to get it but we get several profiles, none of them meet the filter requerimient.

 

Can anyone help us?

 

Thanks

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

1 reply

Adobe Employee
November 23, 2022

Hi,

I am not sure but think the documentation might be incorrect here.

 

If you add the fields under Advanced Filtering, normally there is an API cusByFields created.

/profile/cusByFields/byText?cusHobby=Tennis&filterType=Hobby

 

Note that the filterType value needs to be the Label visible in Advanced Filtering.

pkalinow81
Level 2
January 25, 2023

Hi,

 

Adding "cusByFields" before "byText" doesn't help. Still, many (all?) records are returned intstead of only one.

What do you mean by "Advance Filtering"?

 

Thanks

Piotr