PostMark List not Sending

Hi, I’m a long-time Bubbler, but this is my first time posting. I’m hoping someone here can shed some light on an issue that I’ve had no success debugging.

I’ve just signed up for Postmark and have connected via the Bubble api connector. I’m able to create emails successfully, but I’ve run across an issue when trying to send a list of things. Here is the JSON from the API connector:

The list is “rfq_details”. Here is a screenshot of the workflow itself that is generating the list of details:

When I trigger the workflow and look in the debugger I can see that this text is being generated:

image

Here is the raw text copy-pasted from the debugger:
{
“lineitem”: “Teardrop Frame (240"H X 42"D; FR.2.314)”,
“qty”: “5,600”
},{
“lineitem”: “Teardrop Frame (240"H X 42"D; FR.2.314)”,
“qty”: “5,600”
}

I think the API connection is configured correctly and the text is formatted correctly because when I take this text and put it directly into the JSON (as shown below), the email sends just fine.

But when I leave the parameter blank and let it get filled programatically via the workflow I get this error:

image

Any help would be appreciated!
Thanks,
Blazej

Hi @blazej1

Try removing the double quote symbols for inches or change them for a double prime. I’m not 100% sure but it’s possible that Postmark’s API isn’t managing the backslash properly.

Best,
Arthur

Thanks for the suggestion, but I modified those line in the DB and removed the quotations completely and it still returned the same error. Here is the resulting text that was generated in my updated workflow that still failed:
{
“lineitem”: “This is a beam”,
“qty”: “5,600”
},
{ “lineitem”: “This is a frame”,
“qty”: “5,600”
}

If anyone searches this in the future, the solution was to remove the line breaks in the editor. The entire expression has to be formatted as one line otherwise Bubble includes line breaks in the JSON which will error out. The correction is below:

image

1 Like