Forum Discussion
Key-value pairs in In-App-Message drag and drop editor?
Hi David!
"Braze allows you to send custom-defined string key-value pairs, known as extras. To access your extras in API-triggered and scheduled API-triggered campaigns, in the dashboard, set a key as "example_key" and a value as "$json:{ "foo": 1, "bar": 1}". This will result in a developer console output of "extras": {"test": {"foo": 1, "bar": 1 }."
To be honest, I'm not sure I understand what this means. :) Is it a way to send key-value pairs to the campaign or a way to have them replicate downstream to the app?
And yes! Custom HTML using the traditional editor is probably the way to go.
I have not had experience using this but you are correct. If you enter "Key: mobileApp" and "Value: campaign" in Braze, in the backend my understanding is it would be sent as a JSON object such as, $json:{"key": "mobileApp", "value": "campaign"}.
The fact it says it will result in a developer console output of "extras" makes me think this won't solve your problem, as this appears to be logging only to the developer console, which won't trigger anything if that's case.
Related Content
- 7 months ago
- 7 months ago