Skip to content

Commit

Permalink
#889: ensure lowercased searches are not rejected
Browse files Browse the repository at this point in the history
keywords are automatically uppercased by SFMC
  • Loading branch information
JoernBerkefeld committed May 26, 2023
1 parent e4569db commit 89959fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/metadataTypes/MobileKeyword.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ class MobileKeyword extends MetadataType {
// overwrite queryParams
queryParams = key.slice(3);
} else if (key.includes('.')) {
// keywords are always uppercased
key = key.toUpperCase();
// format: code.keyword
const [code, keyword] = key.split('.');
queryParams = `?view=simple&$where=keyword%20eq%20%27${keyword}%27%20and%code%20eq%20%27${code}%27%20`;
Expand Down

0 comments on commit 89959fb

Please sign in to comment.