byUuid という名前のフィルターがプロファイルリソースで定義されています
説明 description
環境
- Campaign Standard
問題/症状
プロファイルリソースに「byUuid」という名前のフィルターが定義されています。
Postmanで API リクエストが失敗し、次のエラーが発生します。
リクエスト:https://mc.adobe.io/*****************/campaign/profileAndServices/profile/byUuid?uuid_parameter=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx
応答:RST-360011 エラーが発生しました。 管理者にお問い合わせください。
BAS-010040 'byUuid' (テキスト型)を 32 ビット整数型(bAS-010011 無効なデータ)に変換できません。
ACS で直接テストを行うと、同じエラーが次のように表示されます。
https://*****************/rest/profileAndServices/profile/byUuid?uuid_parameter=xxxxxx-xxxx-xxxx-xxxx&__securitytoken=…
また、「/rest/head/profile」を使用してテストを行う場合は、応答は良好です。
https://*********/rest/head/profile/byUuid?uuid_parameter=xxxxxx-xxxx-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)
原因
使用されていないベストプラクティス