已在用户档案资源中定义了名为byUuid的过滤器
描述 description
环境
- Campaign Standard
问题/症状
已在用户档案资源中定义名为“byUuid”的过滤器。
Postman中的API请求失败,并出现以下错误:
请求: https://mc.adobe.io/***************/campaign/profileAndServices/profile/byUuid?uuid_parameter=xxxxxxx-xxxx-xxxx-xxxx-xxxx
响应:RST-360011发生错误。 请联系管理员。
BAS-010040无法将“byUuid”(文本类型)转换为32位整数类型(bAS-010011数据无效)。
如果直接在ACS中进行测试,则会显示相同的错误:
https://****************/rest/profileAndServices/profile/byUuid?uuid_parameter=xxxxxx-xxxx-xxxx-xxxxxx&__securitytoken=…
如果进行了使用“/rest/head/profile”的测试,则响应良好:
https://**********/rest/head/profile/byUuid?uuid_parameter=xxxxxx-xxxx-xxxx-xxxxxxxxx&__securitytoken=…
/rest/head/profile'不是预期的URL。
解决方法 resolution
hasCustomFilter参数必须设置为true。
请参阅下面的代码示例:
// initialize the sdk
const campaignClient = await CampaignStandard.init(params.tenant, params.apiKey, token)
// Get all profiles from Campaign Standard and filter by uuid
let parameters = {
filters: [ 'byUuid'] ,
uuid_parameter:
uuid, hasCustomFilter: true
}
const profiles = await campaignClient.getAllProfiles(parameters)
原因
未使用的最佳实践