I’m trying to use Workato’s slack block kit blocks editor but finding it virtually impossible to embed datapills without it throwing errors. Just below the editor Workato displays:
“Enter the Block Kit blocks as a JSON array or as an object with a blocks key. Datapills are supported inside the JSON. Build blocks visually.“
It’s easy insert the datapill within the text strings but in text mode it generates an obscure partial error in the editor and in fx mode it only errors when the recipe runs as a block kit error. I’ve looked for Workato documentation on this specific topic and haven’t found any. Appreciate any guidance.
Hi, You should be able to use datapills in Block kit blocks. Please find below sample recipes for reference.
Simple Image and Text : app.workato.com/recipes/83792122?st=…
Generating a dynamic table using Ruby : app.workato.com/recipes/83792127?st=…
If you can share a copy of your recipe, can help you with identifying the root cause and fix it.
Thanks Brahma R.. I was using the Post Message with the Slack Connector vs the Slack Bot version. Below is what’s presented for using “Block Kit Blocks” as one JSON with this connector. The only way to get the embedded pills to work was swap over to formula and use Ruby convention which is a full rewrite of the text JSON. I would expect Workato to handle the insertion of pills in the text version better. I would still like to stay with the text version bc there are nice block kit builder tools for this vs formula + ruby. Maybe it’s just a form of escaping the pill in the text editor that I haven’t been able to sort out.