Searches for profiles within a specific domain using one or more predefined search keys (e¶
Description¶
Searches for profiles within a specific domain using one or more predefined search keys (e.g., _fullName, _phone, _email, _account, etc.) and/or custom-defined search keys. A search key is a data type pair that consists of a KeyName and Values list.
This operation supports searching for profiles with a minimum of 1 key-value(s) pair and up to 5 key-value(s) pairs using either AND or OR logic.
Usage¶
customerprofiles_search_profiles(NextToken, MaxResults, DomainName,
KeyName, Values, AdditionalSearchKeys, LogicalOperator)
Arguments¶
-
NextTokenThe pagination token from the previous SearchProfiles API call.
-
MaxResultsThe maximum number of objects returned per page.
The default is 20 if this parameter is not included in the request.
-
DomainName[required] The unique name of the domain.
-
KeyName[required] A searchable identifier of a customer profile. The predefined keys you can use to search include: _account, _profileId, _assetId, _caseId, _orderId, _fullName, _phone, _email, _ctrContactId, _marketoLeadId, _salesforceAccountId, _salesforceContactId, _salesforceAssetId, _zendeskUserId, _zendeskExternalId, _zendeskTicketId, _serviceNowSystemId, _serviceNowIncidentId, _segmentUserId, _shopifyCustomerId, _shopifyOrderId.
-
Values[required] A list of key values.
-
AdditionalSearchKeysA list of
AdditionalSearchKeyobjects that are each searchable identifiers of a profile. EachAdditionalSearchKeyobject contains aKeyNameand a list ofValuesassociated with that specific key (i.e., a key-value(s) pair). These additional search keys will be used in conjunction with theLogicalOperatorand the requiredKeyNameandValuesparameters to search for profiles that satisfy the search criteria. -
LogicalOperatorRelationship between all specified search keys that will be used to search for profiles. This includes the required
KeyNameandValuesparameters as well as any key-value(s) pairs specified in theAdditionalSearchKeyslist.This parameter influences which profiles will be returned in the response in the following manner:
AND- The response only includes profiles that match all of the search keys.OR- The response includes profiles that match at least one of the search keys.
The
ORrelationship is the default behavior if this parameter is not included in the request.
Value¶
A list with the following syntax:
list(
Items = list(
list(
ProfileId = "string",
AccountNumber = "string",
AdditionalInformation = "string",
PartyType = "INDIVIDUAL"|"BUSINESS"|"OTHER",
BusinessName = "string",
FirstName = "string",
MiddleName = "string",
LastName = "string",
BirthDate = "string",
Gender = "MALE"|"FEMALE"|"UNSPECIFIED",
PhoneNumber = "string",
MobilePhoneNumber = "string",
HomePhoneNumber = "string",
BusinessPhoneNumber = "string",
EmailAddress = "string",
PersonalEmailAddress = "string",
BusinessEmailAddress = "string",
Address = list(
Address1 = "string",
Address2 = "string",
Address3 = "string",
Address4 = "string",
City = "string",
County = "string",
State = "string",
Province = "string",
Country = "string",
PostalCode = "string"
),
ShippingAddress = list(
Address1 = "string",
Address2 = "string",
Address3 = "string",
Address4 = "string",
City = "string",
County = "string",
State = "string",
Province = "string",
Country = "string",
PostalCode = "string"
),
MailingAddress = list(
Address1 = "string",
Address2 = "string",
Address3 = "string",
Address4 = "string",
City = "string",
County = "string",
State = "string",
Province = "string",
Country = "string",
PostalCode = "string"
),
BillingAddress = list(
Address1 = "string",
Address2 = "string",
Address3 = "string",
Address4 = "string",
City = "string",
County = "string",
State = "string",
Province = "string",
Country = "string",
PostalCode = "string"
),
Attributes = list(
"string"
),
FoundByItems = list(
list(
KeyName = "string",
Values = list(
"string"
)
)
),
PartyTypeString = "string",
GenderString = "string",
ProfileType = "ACCOUNT_PROFILE"|"PROFILE",
EngagementPreferences = list(
Phone = list(
list(
KeyName = "string",
KeyValue = "string",
ProfileId = "string",
ContactType = "PhoneNumber"|"MobilePhoneNumber"|"HomePhoneNumber"|"BusinessPhoneNumber"|"EmailAddress"|"PersonalEmailAddress"|"BusinessEmailAddress"
)
),
Email = list(
list(
KeyName = "string",
KeyValue = "string",
ProfileId = "string",
ContactType = "PhoneNumber"|"MobilePhoneNumber"|"HomePhoneNumber"|"BusinessPhoneNumber"|"EmailAddress"|"PersonalEmailAddress"|"BusinessEmailAddress"
)
)
)
)
),
NextToken = "string"
)