設定檔資源中已定義由Uuid命名的篩選器

說明 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)

原因
未使用的最佳實務

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f