Skip to main content

iPaaS.com to Slack V2 Large Sale Message Mapping Documentation

How the Add Slack Large Sale Message FROM iPaaS.com collection posts a Slack message for each iPaaS.com transaction of 1,000 or more: filter, fields, flow and errors.

Summary

Slack large-sale messages are created from iPaaS.com Transactions through the Add Slack Large Sale Message FROM iPaaS.com mapping collection (transfer FROM iPaaS.com, sync type Add). When a transaction with a total of 1,000 or more is sent FROM iPaaS.com, the integration posts one new message to the mapped Slack channel or member, so the team watching a channel such as #big-sales hears about the sale right away. The message shows the transaction number, the total formatted as money, the item count and the customer's email address.

The collection writes only to Slack: it does not change the transaction in iPaaS.com, and Slack keeps no copy of the transaction other than the posted message.

ID Format

Manual Sync ID Format

On the iPaaS.com Manual Sync page for this collection, enter the iPaaS.com transaction id of the transaction to post. The mapping filter still applies, and a transaction that has already posted through this collection is not posted again.

External ID Format

After a successful post, iPaaS.com saves the Slack block id of the message's first section on a dedicated external-id record for that transaction and subscription. The block id is a short identifier that Slack assigns to the section; it is set by Slack, not by a mapping. That link is what stops this Add collection from posting the same transaction twice. The transaction's own fields are not changed.

Deleted Record Support

Deletion is not supported. Deleting a transaction in iPaaS.com does not post a message, and it does not remove or change a message posted earlier. Delete mappings are not part of this template. Do not turn on transaction/deleted for this collection.

Custom Field Support

Slack messages have no custom fields, so there is nothing on the Slack side to map a custom field to. iPaaS.com custom fields of the transaction can be read inside the Text formula to add them to the message. Validate the result in a staging subscription before relying on it in production.

Mapping Collection Status

  • Status: Enabled. The mapping filter lets every transaction with a total of 1,000 or more through.

  • Trigger Events: the iPaaS.com transaction/created event, turned on under Outbound Data Flows (see Setup Requirements). transaction/updated is optional (see Setup Requirements).

Before turning on the event, replace the Channel placeholder. While the template placeholder <Enter Channel Name Here> is still mapped, every matching transaction stops with an error in Dashboard / Integration Monitoring / Error Logs and nothing is posted.

Duplicate or Conflicting Mappings

Collision Handling

This collection has no Collision Handling Method. There is no record matching in Slack: every successful transfer is a new post.

Other Slack Collections on the Transaction Data Type

When a second Slack collection on the Transaction data type is in use (for example a copy of this one with another threshold or channel), it also posts, with its own filter and channel. Review the filters and channels of every Slack collection on this data type before enabling them, so one sale does not post to the same channel twice.

Unmapped Field Overwrite Risk

Not applicable. Slack keeps no record that a later transfer could overwrite.

Supported Child Collections

None. This collection posts one message per transaction and has no child collections.

System Caveats

Slack Caveats

  • Slack app installed: the Slack app must be installed in your workspace, either by authorizing it with the Authenticate icon (the padlock) on the subscription (preferred) or with a Bot User OAuth Token (it starts with xoxb-) in the API Token setting. The app needs permission to post messages and, for member lookups such as UserIdFromName, to read the workspace member list; authorizing grants both.

  • Channels must exist: the integration never creates channels. A missing channel, or a private channel the app has not been added to, stops the transfer with an error. To add the app to a private channel, open the channel in Slack and go to View Channel Details > Integrations > Add Apps. An archived channel also stops the transfer.

  • Channel names are normalized: a channel name is converted to Slack's channel-name rules (lowercase letters, numbers, hyphens and underscores, up to 80 characters), so #Big Sales is posted to #big-sales. A channel id or a member id is used as entered.

  • Text sections: the message is posted as text sections with Slack formatting (bold, emoji, links); it has no images or buttons. Each section holds up to 3,000 characters: longer text is split into several sections of one message, and the FollowUpMessage is added only when that happens.

  • Rate limit: Slack's guidance is about one message per second per channel (see Slack's message posting reference). When Slack's rate limit is reached, the transfer is held and retried automatically after the wait Slack asks for. No action is needed.

iPaaS.com Caveats

  • Event to enable: only transaction/created is needed for this template. Transactions created before the event is enabled are not posted automatically; use Manual Sync for any that should be.

  • Threshold on the total only: the filter checks only the transaction's Total. Every transaction type that reaches the threshold is posted, and the currency is not checked.

  • Errors: every error from this collection appears in Dashboard / Integration Monitoring / Error Logs.

Setup Requirements

iPaaS.com Configuration

  1. Replace the Channel placeholder with your channel, channel id or member formula (see Mappings).

  2. Optionally change the threshold in the mapping filter, for example from 1000 to 2500.

  3. On the subscription's settings page, click the Outbound Data Flows icon in the toolbar. In the Transaction/Created row, which lists this collection under Mapping Collections, turn on the Active toggle. No automatic transfers occur until that event is turned on.

The Outbound Data Flows page listing the Transaction/Created row for Add Slack Large Sale Message FROM iPaaS.com, with its Active toggle

If transactions often reach the threshold only after they are created (for example when lines are added later), subscribers or their MiSP can also enable transaction/updated. Because this collection's sync type is Add, a transaction posts at most once: the first time it is sent with a total that passes the filter. Validate this in a staging subscription before relying on it in production.

No other setup is needed in iPaaS.com before this collection can run.

Slack Configuration

  • Install the Slack app in the workspace (see Slack Caveats).

  • Create the channel that should receive large-sale messages, for example #big-sales. If it is private, add the app to it.

Integration Flow

  1. A transaction is created in iPaaS.com while transaction/created is enabled, or a transaction id is entered on the Manual Sync page.

  2. If the transaction has already posted through this collection, it is not posted again.

  3. The mapping filter checks the transaction's Total. A transaction under the threshold is skipped without an error and without a message.

  4. The Text formula builds the message. If it returns nothing, the transfer stops with an error and nothing is posted.

  5. The text is split on spaces into sections of up to 3,000 characters. When it is split, the FollowUpMessage (not mapped in this template) is added as a last section.

  6. The Channel value is checked. An empty value or the template placeholder stops the transfer with an error. A channel name is normalized to Slack's channel-name rules; a channel id or member id is used as entered.

  7. The message is posted to Slack as one new message. If Slack's rate limit is reached, the transfer is held and retried automatically.

  8. The Slack block id of the first section is saved as the transaction's external id for this subscription.

The integration never edits or deletes a message it posted earlier: any later post is a new message.

Mappings

Add Slack Large Sale Message FROM iPaaS.com

iPaaS.com data type: Transaction

Mapping Filter

// Sales of $1,000 or more. Change 1000 to your own threshold.
return Total >= 1000;

Filter Description: only transactions whose Total is 1,000 or more are posted; smaller transactions are skipped without an error and without a message. The comment line has no effect. The threshold of 1,000 is a designed default that subscribers or their MiSP may change to suit their business: for example, change 1000 to 2500 to post only sales of 2,500 or more. The filter checks only the total, so every transaction type that reaches the threshold is posted, and it does not look at the currency. Add a condition on the transaction type to the filter if only some types should post, and test the change with Manual Sync before relying on it.

Description: builds a short Slack message for each large sale and posts it to the mapped channel or member.

Mapping Type

Source Field (iPaaS.com)

Destination Field (Slack)

Description

Static

<Enter Channel Name Here>

Channel

Required. Decides where the large-sale message is posted. Placeholder value — replace during implementation: replace <Enter Channel Name Here> with a channel name such as #big-sales, a channel id, or a Dynamic Formula that returns a member id, such as return await UserIdFromName("jane");.

Dynamic Formula

return ":moneybag: *Large sale " + TransactionNumber + "*\n" + Field("Total", Money(Total, "$")) + Field("Items", TotalQty) + Field("Customer email", EmailAddress);

Text

Required. The message: a bold heading with a money-bag emoji and the transaction number, then one labeled line each for the total, the item count and the customer's email address. If it returns nothing, the transfer stops with an error.

Channel options: Replace the placeholder with one of the following before turning on the collection:

  • A channel name: for example #big-sales. The channel must already exist in Slack. A channel name is converted to Slack's channel-name rules before posting, so #Big Sales is posted to #big-sales.

  • A channel id: a public or private channel id copied from the channel's details in Slack. Channel ids start with C or G, for example C01AB2CD3EF (an example id only). An id is used exactly as entered.

  • One person: change this mapping's type to Dynamic Formula and enter return await UserIdFromName("jane"); so the message goes to that workspace member. The lookup ignores case, checks each member's Slack name first and then their real name, and uses the first member that matches. When two members share a name, the message can reach the wrong person, so use the member's id (it starts with U) or a channel instead when names repeat.

Text example: A transaction numbered 10045 with a total of 1250 for 3 items is posted as the heading Large sale 10045, followed by Total: $1,250.00, Items: 3 and Customer email: jane@example.com.

  • Field: writes one labeled line with the label in bold, and leaves the line out when the value is empty, so a transaction with no email address simply has no email line.

  • Money: shows the total with thousands separators and two decimals after the symbol given in the formula. The template uses $ for every transaction: subscribers or their MiSP who sell in another currency change "$" in the formula to their own symbol, for example "€".

  • More lines can be added the same way, for example + Field("Status", Status) before the closing semicolon.

The Type, Emoji, Verbatim and FollowUpMessage destination fields are not mapped in this template. Type, Emoji and Verbatim are not sent to Slack, so mapping them has no effect. FollowUpMessage is optional and is added only when the text is long enough to be split, which this template's short message does not reach.

Error Handling

Every error from this collection appears in Dashboard / Integration Monitoring / Error Logs. See Slack V2 Error Messages for the full list of messages and resolutions.

  • Empty message: the Text mapping returned nothing, so nothing is posted. Check the Text formula on this collection.

  • Placeholder left in Channel: the error names the template placeholder <Enter Channel Name Here>. Replace it with your channel name, channel id or member formula.

  • Channel not found or private: Slack cannot post to the channel because it does not exist, or it is private and the Slack app has not been added to it. Create the channel in Slack, or add the app in View Channel Details > Integrations > Add Apps.

  • Archived channel: the channel is archived in Slack. Unarchive it, or change the Channel mapping.

  • Empty Channel or member not found: the Channel mapping returned nothing, for example when UserIdFromName finds no workspace member with that name. Check the name in Slack, or use a member id or a channel.

  • Invalid token: Slack rejects the post and the error shows Slack's own reason, such as invalid_auth. Authorize the app again with the Authenticate icon (the padlock), or enter a valid Bot User OAuth Token in the API Token setting.

  • Slack rate limit: the transfer is held and retried automatically after the wait Slack asks for. No action is needed.

Testing & Validation

Test Scenarios

  1. Create a test channel in Slack (for example #big-sales-test) and map it in Channel.

  2. Send a transaction with a total of 1,000 or more through Manual Sync (or create one with transaction/created enabled) and confirm one message appears in the channel with the transaction number, total, item count and email address.

  3. Send a transaction with a total under 1,000 and confirm no message is posted and no error is logged.

  4. Send the first transaction through Manual Sync again and confirm it is not posted a second time.

  5. If you changed the threshold or added a condition to the filter, send a transaction on each side of the change and confirm only the expected one posts.

  6. Check Dashboard / Integration Monitoring / Error Logs for any errors from the collection.

Validation Checklist

  • The Channel placeholder is replaced with a real channel, channel id or member formula.

  • The channel exists, and the Slack app is added to it if it is private.

  • The currency symbol in the Text formula matches your sales.

  • The threshold in the filter suits your business.

  • transaction/created is enabled under Outbound Data Flows.

  • No other Slack collection on the Transaction data type posts the same sale to the same channel.

Additional Notes

Out of Scope

  • Editing or deleting messages: a posted Slack message is never edited or deleted by the integration.

  • Deleted transactions: deleting a transaction in iPaaS.com does not post a message or remove an earlier one.

  • TO iPaaS.com transfers: nothing is read from Slack into iPaaS.com, and there is no polling or bulk initialization.

Known Limitations

At the time this documentation was written:

  • One post per transaction: with the Add sync type, a transaction that has posted is not posted again, even if its total changes later.

  • New message on every post: the integration always posts a new message; it cannot update a message it posted earlier.

  • Mappings with no effect: the Type, Emoji and Verbatim destination fields are not sent to Slack, so mapping them has no effect.

  • Member lookup by name: UserIdFromName uses the first workspace member that matches. When two members share a name, the message can reach the wrong person: use a member id or a channel instead when names repeat.

  • Currency symbol: the template's Money formatting uses $ for every transaction. Change the symbol in the Text formula when your sales are in another currency.

See Slack V2 Integration Known Limitations for the limitations that apply to the whole integration.

Related Documents

Related Mapping Documentation

Did this answer your question?