CustomerProfiles.Client.
merge_profiles
(**kwargs)¶Runs an AWS Lambda job that does the following:
ProfileToBeMerged
will be moved to the main profile.ProfileToBeMerged
will be moved to the main profile.ProfileToBeMerged
will be deleted at the end.ProfileIdsToBeMerged
will be moved to the main profile.SourceProfileIds
entry is specified, the main Profile value is always taken.SourceProfileIds
entry is specified, the specified profileId is always taken, even if it is a NULL value.You can use MergeProfiles together with GetMatches, which returns potentially matching profiles, or use it with the results of another matching system. After profiles have been merged, they cannot be separated (unmerged).
See also: AWS API Documentation
Request Syntax
response = client.merge_profiles(
DomainName='string',
MainProfileId='string',
ProfileIdsToBeMerged=[
'string',
],
FieldSourceProfileIds={
'AccountNumber': 'string',
'AdditionalInformation': 'string',
'PartyType': 'string',
'BusinessName': 'string',
'FirstName': 'string',
'MiddleName': 'string',
'LastName': 'string',
'BirthDate': 'string',
'Gender': 'string',
'PhoneNumber': 'string',
'MobilePhoneNumber': 'string',
'HomePhoneNumber': 'string',
'BusinessPhoneNumber': 'string',
'EmailAddress': 'string',
'PersonalEmailAddress': 'string',
'BusinessEmailAddress': 'string',
'Address': 'string',
'ShippingAddress': 'string',
'MailingAddress': 'string',
'BillingAddress': 'string',
'Attributes': {
'string': 'string'
}
}
)
[REQUIRED]
The unique name of the domain.
[REQUIRED]
The identifier of the profile to be taken.
[REQUIRED]
The identifier of the profile to be merged into MainProfileId.
The identifiers of the fields in the profile that has the information you want to apply to the merge. For example, say you want to merge EmailAddress from Profile1 into MainProfile. This would be the identifier of the EmailAddress field in Profile1.
A unique identifier for the account number field to be merged.
A unique identifier for the additional information field to be merged.
A unique identifier for the party type field to be merged.
A unique identifier for the business name field to be merged.
A unique identifier for the first name field to be merged.
A unique identifier for the middle name field to be merged.
A unique identifier for the last name field to be merged.
A unique identifier for the birthdate field to be merged.
A unique identifier for the gender field to be merged.
A unique identifier for the phone number field to be merged.
A unique identifier for the mobile phone number field to be merged.
A unique identifier for the home phone number field to be merged.
A unique identifier for the business phone number field to be merged.
A unique identifier for the email address field to be merged.
A unique identifier for the personal email address field to be merged.
A unique identifier for the party type field to be merged.
A unique identifier for the party type field to be merged.
A unique identifier for the shipping address field to be merged.
A unique identifier for the mailing address field to be merged.
A unique identifier for the billing type field to be merged.
A unique identifier for the attributes field to be merged.
dict
Response Syntax
{
'Message': 'string'
}
Response Structure
(dict) --
Message (string) --
A message that indicates the merge request is complete.
Exceptions
CustomerProfiles.Client.exceptions.BadRequestException
CustomerProfiles.Client.exceptions.ResourceNotFoundException
CustomerProfiles.Client.exceptions.ThrottlingException
CustomerProfiles.Client.exceptions.InternalServerException