Partial Outageshare-external
Error with Base64 Encoded Images in WhatsApp JSON Flow Builder (v5.0)
2

I’m using WhatsApp JSON Flow Builder (v5.0) and have an issue with base64 encoded images in my data model. The relevant part of my model looks like this:

"order_items": {
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "id": {"type": "string"},
            "title": {"type": "string"},
            "description": {"type": "string"},
            "image": {"type": "string"}
        }
    }
}

When I reference ${data.order_items} in a form, I get this error: Expected ‘screens[1].data.order_items.items.properties.image’ to be of type ‘’.

What should the type for the image field be to handle base64 encoded images properly?

Mick
Asked about 3 months ago
Selected Answer
1

Hi Mick, where are you using order_items? You can try using an example src from https://developers.facebook.com/docs/whatsapp/flows/reference/components#img to verify the base64 string is valid.

September 6 at 4:53 AM
Diego