'${recordID}' IN CompaignId
does not work and fails in the same way as ${recordID} IN CompaignId
Here the cURL requests when hitting save after changing teh prefilter for both cases:
With: ${recordID} IN CompaignId
curl 'http://172.20.20.82:8080/api/compose/namespace/338002797230489603/module/338002798321598467/record/?query=(0+IN+CompaignId)&deleted=0&limit=20&incTotal=true&incPageNavigation=true&sort=RecordLabel+ASC' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Accept-Language: en' \
-H 'Authorization: Bearer eyJhbGxxxx' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Content-Language: en' \
-H 'Cookie: jwt=eyJhbGxxxx; i18next=en' \
-H 'Pragma: no-cache' \
-H 'Referer: http://172.20.20.82:8080/compose/ns/crm/admin/pages/338002799898198019/builder?layoutID=338005175484678147' \
-H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36' \
--compressed \
--insecure
Response:
{
"error": {
"message": "unknown attribute \"CompaignId\" used in query expression"
}
}
With: '${recordID}' IN CompaignId
curl 'http://172.20.20.82:8080/api/compose/namespace/338002797230489603/module/338002798321598467/record/?query=(%270%27+IN+CompaignId)&deleted=0&limit=20&incTotal=true&incPageNavigation=true&sort=RecordLabel+ASC' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Accept-Language: en' \
-H 'Authorization: Bearer eyJhbGxxxx' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Content-Language: en' \
-H 'Cookie: jwt=eyJhbGxxxx; i18next=en' \
-H 'Pragma: no-cache' \
-H 'Referer: http://172.20.20.82:8080/compose/ns/crm/admin/pages/338002799898198019/builder?layoutID=338005175484678147' \
-H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36' \
--compressed \
--insecure
Response:
{
"error": {
"message": "unknown attribute \"CompaignId\" used in query expression"
}
}
Strange: After reverting back to CampaignId = ${recordID}
, i sometimes see the same error Could not load record list: unknown attribute "CompaignId" used in query expression
. Trying to hit save mutiple times, somehow works.
I also saw this error in the console when opening the Compaign details page (with CampaignId = ${recordID}
:
vue.esm.js:1906 Error: Can not use ${record...} variable in non-record pages
at a.prepRecordList (RecordListBase.vue:1239:17)
at a.handler (RecordListBase.vue:1018:14)
at ot (vue.esm.js:1872:26)
at e.$watch (vue.esm.js:4974:7)
at br (vue.esm.js:4930:13)
at yr (vue.esm.js:4912:7)
at cr (vue.esm.js:4670:5)
at e._init (vue.esm.js:5029:5)
at new a (vue.esm.js:5177:12)
at ln (vue.esm.js:3313:10)
Note: I mentioned a similar/same Error here, so it might not be related.
For reference: Here the block that i added to compaign record page: