Slack sending multiple same messages instead of one

Hi Make Community!

I’m learning automation with Make and I encountered an issue on the Slack integration stage.

I set up the Slack Create a Message module to send my custom message to the public channel in Slack when the new deal or contact is created in CRM. It sends six same messages instead of one in both cases. How can I fix this issue?

Attached the scenario screenshot.

And here is the output info:

Thank you!

Can you please share a screenshot of what you are mapping the the create a message module. And of the whole scenario.

Sure!

The whole scenario:

Message module:

Great thank you so it will happen because of custom fields: link to hubspot. I can help more if you send the output of that.

I also thought the custom field was the reason and tried to test without it - the same problem. I will send the outputs with the custom field and without it.

Without custom field:

{
“ts”: “1722449472.858799”,
“channel”: “C07EXMV9W59”,
“message”: {
“user”: “U07ER5VLAR4”,
“type”: “message”,
“ts”: “1722449472.858799”,
“bot_id”: “B07EXS9ANG2”,
“app_id”: “A0X0JM3SB”,
“text”: “Hi Managers! Please note that a new deal has been added to the HS. Make sure to get in touch. Go there: https://app-eu1.hubspot.com/contacts/145049743/record/0-3/”,
“team”: “T07EUTFD81K”,
“bot_profile”: {
“id”: “B07EXS9ANG2”,
“app_id”: “A0X0JM3SB”,
“name”: “Integromat”,
“icons”: {
“image_36”: “https://avatars.slack-edge.com/2018-05-23/368956162100_66b49ddc3c4121136e57_36.png”,
“image_48”: “https://avatars.slack-edge.com/2018-05-23/368956162100_66b49ddc3c4121136e57_48.png”,
“image_72”: “https://avatars.slack-edge.com/2018-05-23/368956162100_66b49ddc3c4121136e57_72.png
},
“deleted”: false,
“updated”: “2024-07-31T17:11:27.000Z”,
“team_id”: “T07EUTFD81K”
},
“blocks”: [
{
“type”: “rich_text”,
“block_id”: “evf”,
“elements”: [
{
“type”: “rich_text_section”,
“elements”: [
{
“type”: “text”,
“text”: "Hi Managers! Please note that a new deal has been added to the HS. Make sure to get in touch. Go there: "
},
{
“type”: “link”,
“url”: “https://app-eu1.hubspot.com/contacts/145049743/record/0-3/
}
]
}
]
}
]
}
}
]

With the custom field link to hubspot:

[
{
“ts”: “1722449822.645989”,
“channel”: “C07EXMV9W59”,
“message”: {
“user”: “U07ER5VLAR4”,
“type”: “message”,
“ts”: “1722449822.645989”,
“bot_id”: “B07EXS9ANG2”,
“app_id”: “A0X0JM3SB”,
“text”: "Hi Managers! Please note that a new contact has been added to the HS. Make sure to get in touch. Go there: ",
“team”: “T07EUTFD81K”,
“bot_profile”: {
“id”: “B07EXS9ANG2”,
“app_id”: “A0X0JM3SB”,
“name”: “Integromat”,
“icons”: {
“image_36”: “https://avatars.slack-edge.com/2018-05-23/368956162100_66b49ddc3c4121136e57_36.png”,
“image_48”: “https://avatars.slack-edge.com/2018-05-23/368956162100_66b49ddc3c4121136e57_48.png”,
“image_72”: “https://avatars.slack-edge.com/2018-05-23/368956162100_66b49ddc3c4121136e57_72.png
},
“deleted”: false,
“updated”: “2024-07-31T17:11:27.000Z”,
“team_id”: “T07EUTFD81K”
},
“blocks”: [
{
“type”: “rich_text”,
“block_id”: “pjIBa”,
“elements”: [
{
“type”: “rich_text_section”,
“elements”: [
{
“type”: “text”,
“text”: “Hi Managers! Please note that a new contact has been added to the HS. Make sure to get in touch. Go there:”
}
]
}
]
}
]
}
}
]

Apologies, here is the one with the custom field link to hubspot:

[
{
“ts”: “1722449996.631159”,
“channel”: “C07EXMV9W59”,
“message”: {
“user”: “U07ER5VLAR4”,
“type”: “message”,
“ts”: “1722449996.631159”,
“bot_id”: “B07EXS9ANG2”,
“app_id”: “A0X0JM3SB”,
“text”: “Hi Managers! Please note that a new contact has been added to the HS. Make sure to get in touch. Go there: https://app-eu1.hubspot.com/contacts/145049743/record/0-1/27447641305”,
“team”: “T07EUTFD81K”,
“bot_profile”: {
“id”: “B07EXS9ANG2”,
“app_id”: “A0X0JM3SB”,
“name”: “Integromat”,
“icons”: {
“image_36”: “https://avatars.slack-edge.com/2018-05-23/368956162100_66b49ddc3c4121136e57_36.png”,
“image_48”: “https://avatars.slack-edge.com/2018-05-23/368956162100_66b49ddc3c4121136e57_48.png”,
“image_72”: “https://avatars.slack-edge.com/2018-05-23/368956162100_66b49ddc3c4121136e57_72.png
},
“deleted”: false,
“updated”: “2024-07-31T17:11:27.000Z”,
“team_id”: “T07EUTFD81K”
},
“blocks”: [
{
“type”: “rich_text”,
“block_id”: “0wX”,
“elements”: [
{
“type”: “rich_text_section”,
“elements”: [
{
“type”: “text”,
“text”: "Hi Managers! Please note that a new contact has been added to the HS. Make sure to get in touch. Go there: "
},
{
“type”: “link”,
“url”: “https://app-eu1.hubspot.com/contacts/145049743/record/0-1/27447641305
}
]
}
]
}
]
}
}
]

Sorry I meant can you send the output of active campaign that you are mapping into the slack message.

Looks like I cannot sent it as a text since new users can only put 10 links in a post.

So I’ll split it into a few messages.

[
{
“cdate”: “2024-07-25T09:18:32.000Z”,
“email”: “adovillya+4@gmail.com”,
“phone”: “1351313538”,
“firstName”: “DDD”,
“lastName”: “DDD”,
“orgid”: “0”,
“orgname”: “”,
“segmentio_id”: “”,
“bounced_hard”: “0”,
“bounced_soft”: “0”,
“bounced_date”: null,
“ip”: “3562684339”,
“ua”: “”,
“hash”: “f9ef47edc1011d688e8da57270c54bb4”,
“socialdata_lastcheck”: null,
“email_local”: “”,
“email_domain”: “gmail.com”,
“sentcnt”: “2”,
“rating_tstamp”: “2024-07-29”,
“gravatar”: “0”,
“deleted”: “0”,
“anonymized”: “0”,
“adate”: “2024-07-31T13:18:56-05:00”,
“udate”: “2024-07-31T18:19:56.000Z”,
“edate”: “2024-07-31T13:16:51-05:00”,
“deleted_at”: null,
“created_utc_timestamp”: “2024-07-25 04:18:32”,
“updated_utc_timestamp”: “2024-07-31 13:19:56”,
“created_timestamp”: “2024-07-25 04:18:32”,
“updated_timestamp”: “2024-07-31 13:19:56”,
“created_by”: “0”,
“updated_by”: “0”,
“mpp_tracking”: “0”,
“last_click_date”: “2024-07-29 06:59:17”,
“last_open_date”: “2024-07-29 06:59:14”,
“last_mpp_open_date”: “2024-07-30 09:45:52”,
“links”: {
“bounceLogs”: “https://adovillyamasc.activehosted.com/api/3/contacts/5/bounceLogs”,
“contactAutomations”: “https://adovillyamasc.activehosted.com/api/3/contacts/5/contactAutomations?limit=2500&orders[lastdate]=DESC”,
“contactData”: “https://adovillyamasc.activehosted.com/api/3/contacts/5/contactData”,
“contactGoals”: “https://adovillyamasc.activehosted.com/api/3/contacts/5/contactGoals”,
“contactLists”: “https://adovillyamasc.activehosted.com/api/3/contacts/5/contactLists”,
“contactLogs”: “https://adovillyamasc.activehosted.com/api/3/contacts/5/contactLogs”,
“contactTags”: “https://adovillyamasc.activehosted.com/api/3/contacts/5/contactTags”,

“contactDeals”: “https://adovillyamasc.activehosted.com/api/3/contacts/5/contactDeals”,
“deals”: “https://adovillyamasc.activehosted.com/api/3/contacts/5/deals”,
“fieldValues”: “https://adovillyamasc.activehosted.com/api/3/contacts/5/fieldValues”,
“geoIps”: “https://adovillyamasc.activehosted.com/api/3/contacts/5/geoIps”,
“notes”: “https://adovillyamasc.activehosted.com/api/3/contacts/5/notes”,
“organization”: “https://adovillyamasc.activehosted.com/api/3/contacts/5/organization”,
“plusAppend”: “https://adovillyamasc.activehosted.com/api/3/contacts/5/plusAppend”,
“trackingLogs”: “https://adovillyamasc.activehosted.com/api/3/contacts/5/trackingLogs”,
“scoreValues”: “https://adovillyamasc.activehosted.com/api/3/contacts/5/scoreValues”,

“accountContacts”: “https://adovillyamasc.activehosted.com/api/3/contacts/5/accountContacts”,
“automationEntryCounts”: “https://adovillyamasc.activehosted.com/api/3/contacts/5/automationEntryCounts
},
“id”: “5”,
“organization”: null,
“customFields”: {
“3”: “27447641305”,
“4”: “https://app-eu1.hubspot.com/contacts/145049743/record/0-1/27447641305
}
}
]

I don’t see the link to hubspot there? Where is this?

It’s the last row in the last message I sent “4”.

1 Like

I think one of the issues with the multiple Slack Messages is that one of the previous steps is outputting multiple bundles which is causing Slack to perform six operations during a run ( 1 for each bundle). Try adding a filter before the Slack step and try to see if you can map it to an iteration number?

1 Like

Agreed above will help you but not find the cause of it.

Welcome to the Make community!

The cause of the 6 operations is due to the previous Slack “List Threads” module, which outputs 6 threads.

Why do you need a List Threads module there?

If you really need a List Threads module, then you need to use an aggregator to combine all the outputs of that module to a single bundle (operation), so that it doesn’t affect the next module.

Aggregators

Every result (item/record) from a list/search/match module will output a bundle. This can result in multiple bundles, which then trigger multiple operations in future modules (one operation per bundle). To “combine” multiple bundles into a single variable, you’ll need to use an aggregator of some sort.

Aggregators are modules that accumulate multiple bundles into one single bundle. An example of a commonly-used aggregator module is the Array aggregator module. The next popular aggregator is the Text Aggregator which is very flexible and can apply to many use-cases like building of JSON, CSV, HTML.

There are other types of aggregator modules, click the below links to find out more:

Read This

The Array Aggregator module is very powerful because it allows you to build a complex array of collections for a later module’s field to map multiple items (collections) to it.

This is done using the “Target structure type” of an Array Aggregator module.

Here is an example:

As you can see, the “Map” toggle on complex fields are used when you have an array. You can easily build an array variable to map to a future module’s field, by using an Array Aggregator module and select the “Target Structure Type” as the future module’s field you have mapped the array into.

Hope this helps! Let me know if there are any further questions or issues.

You can also join us in the Make Fans Discord server to chat with other makers!

1 Like

Problem solved! Appreciate everyone’s advice!

Eventually, the thing with aggregator has helped.

Just out of curiosity - is there any other way to implement sending messages to Slack without using List Channels module?

1 Like

Instead of List Channels, did you mean to use it to just get a single channel?

If yes, then you shouldn’t be using List Channels in the first place. Shouldn’t there be a Get Channel module? Or you can hardcode the channel ID that you want to post to in the send message module.

1 Like

Got it, thank you! Get Channel sounds like a better solution

1 Like

No problem, glad I could help!

1. If anyone has a new question in the future, please start a new thread. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help since newer questions are monitored closely.

2. The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep the Community organized.

This marks the topic as solved, so that:

  • others can save time when catching up with the latest activity here, and
  • allows others to quickly jump to the solution if they come across the same problem

To do this, simply click the checkbox at the bottom of the post that answers your question:
Screenshot_2023-10-04_161049

3. Don’t forget to like and bookmark this topic so you can get back to it easily in future!

Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —

Getting Started

Help Centre Basics

Articles & Videos

Partner & Custom Apps

Hope this helps! Let me know if there are any further questions or issues.

You can also join us in the Make Fans Discord server to chat with other makers. Due to the evolving needs of this community, the Discord invite link can be found elsewhere on this forum. You can either search for it or request an invite.

1 Like