Closed franz-josef-kaiser closed 6 years ago
I don't understand, is your issue is that a contact property key
is case-lowered, or that the value assigned to that property is case-lowered?
Because we do lower case contact properties, but the contact property key won't be used in the content any way, only the value will be printed out (and we don't lower case assigned values). In your example, the value of your contact property is lower case, so it's pretty normal that when you use it it's lower case as well?
i.e if you create a contact property city
with the value Paris
, when you use it in an email with {{var:city}}
, it will be replaced with Paris
, not paris
.
@ngarnier while trying to put up the second test case, we noticed that the bug was on our side. Explanation: The meta data gets sent from a legacy application that only allows configuration through the user interface. We did not notice an option that was ticked, that lower cased the values on our end. As the calls are quite similar, we wrongly assumed that this is the same issue for both cases, so we took the test case from the script we use to set up each sub-account. Apologies!
No worries, glad you found the issue on your end 👍
Situation
We noticed that the values for contact meta data get lower cased, when sent via the API. Condition: This happened when adding new contact meta data the via
/contactmetadata
ressource (API endpoint). It also happens, when setting values for a single contacts meta data. Problem: This makes it impossible to use the data in a campaign or in marketing automation. We write German and English E–Mails, so we need upper cased values as well (goes for English as well, w.g. City names).Expected Result
When add a new contactmetadata property (or a value), the string would be expected to get persistent "as sent".
Actual Result
Name
.name
(lowercase).How to reproduce
Set up a new directory named
contactmetadata
.Add a new file:
{name|titel|foo}.json
.Add a new (bash|shell) file:
contact-metadata-create.sh
.Add a new file named
mjapikey
(without extension) and fill it with your API key + private key, comma separated.Add a new file named
name.json
to the/contactmetadata
directory with the following contents:Install
jq
for human readable JSON output in your CLI. Or installjson_pp
(and change below script accordingly).Add the following contents to the shell script:
contactmetadata
folder