Forum Discussion
Key-value pairs in In-App-Message drag and drop editor?
Hey erik_lundgren
I just had a look and couldn't see them either. I tried playing with some of the personalisation options such as API-triggered properties but I'm not confident this would work.
There is some info for passing key-value pairs with API-triggered IAMs in the docs but I don't think this will solve your issue either.
Key-Value Pairs (braze.com)
Be interested to know others suggestions?
I would contact Braze support and see if they have a suggestion. My only other thought is you hack the system by building in the Drag & Drop editor, export the HTML into a custom IAM and then you can add your key value pairs.
- erik_lundgren4 months agoActive Member II
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.
- DavidO4 months agoStrategist II
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