Are There Any Issues with Adding Pipedream Placeholders within a Slack Block Kit?

This topic was automatically generated from Slack. You can find the original thread here.

Hi there, have you seen any issues adding pipedream placeholders within a slack Block Kit? The JSON code is validated but any time i put a step placeholder in the code it will break, if i hard code values it works fine?

Probably related to the thread above ^

I am using a node.js code step prior to ensure it’s delivering one value and it delivering the blocks

THe Block output works perfectly in the Block Kit Builder test but fails every time

{ "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": ":rocket: New Demo Request Received!\n\n**Name:** XXX\n**Email:** [XX@XX.org](mailto:XX@XX.org)" } }, { "type": "divider" }, { "type": "section", "text": { "type": "mrkdwn", "text": "**Step 1: Assign the Lead**\nPlease select a team member to assign this lead:" }, "accessory": { "type": "users_select", "placeholder": { "type": "plain_text", "text": "Select a user", "emoji": true }, "action_id": "assign_user" } }, { "type": "divider" }, { "type": "section", "text": { "type": "mrkdwn", "text": "**Step 2: Qualification Status**\nPlease mark this lead as **Qualified** or **Disqualified**:" }, "accessory": { "type": "static_select", "placeholder": { "type": "plain_text", "text": "Select status", "emoji": true }, "options": [ { "text": { "type": "plain_text", "text": "Qualified", "emoji": true }, "value": "qualified" }, { "text": { "type": "plain_text", "text": "Disqualified", "emoji": true }, "value": "disqualified" } ], "action_id": "qualification_status" } }, { "type": "divider" }, { "type": "input", "block_id": "disqualify_reason", "element": { "type": "plain_text_input", "action_id": "disqualify_reason_input", "placeholder": { "type": "plain_text", "text": "Provide a reason for disqualification" }, "multiline": true }, "label": { "type": "plain_text", "text": "Reason for Disqualification (Required if Disqualified):", "emoji": true }, "optional": true }, { "type": "divider" }, { "type": "section", "text": { "type": "mrkdwn", "text": "Once you have completed the steps, submit your actions using the button below." } }, { "type": "actions", "elements": [ { "type": "button", "text": { "type": "plain_text", "text": "Submit", "emoji": true }, "value": "submit_action", "action_id": "submit_action", "style": "primary" } ] } ] }

basically shooting this output as the whole shabang

Try to input the array only, i.e. remove the outer blocks field

Got it all sorted, thank you! I saw that Pipedream automatically did the blocks enclosure - pulled that out and we’re good to go :slightly_smiling_face: