Skip to main content

iPaaS.com to Slack V2 New Product Message Mapping Documentation

How the Add Slack New Product Message FROM iPaaS.com collection posts one Slack message for each new iPaaS.com product: fields, channel routing and delivery flow.

Summary

The Add Slack New Product Message FROM iPaaS.com mapping collection posts a Slack message when a new product is created in iPaaS.com, so your team sees new catalog items as they arrive. The message lists the product's name, SKU, default price, type and status, and is posted to the Slack channel or workspace member set in the Channel mapping.

Products are sent FROM iPaaS.com when the product/created event is turned on, or on demand through Manual Sync. Each product is posted once. The integration only posts messages: it does not create or change anything in Slack other than the message, and it never edits or deletes a message it has posted.

ID Format

Manual Sync ID Format

On the iPaaS.com Manual Sync page, enter the iPaaS.com product id, a whole number, to post that product's message. A product that is already linked to a Slack post is not posted again.

External ID Format

After a message is posted, iPaaS.com saves the Slack block id of the message's first section on a dedicated external-id record for the product in this subscription. The block id is a short identifier generated by Slack. It is how this collection recognizes a product that is already linked to a Slack post, so the same product is not posted twice. It does not identify the message in Slack, and it is not stored on the product's own fields.

Deleted Record Support

Deletion is not supported. Delete mappings are not included in the default template, and deleting a product in iPaaS.com does not remove or change the Slack message that was posted for it, and does not post a new one. Leave any product deleted event turned off for this subscription.

Custom Field Support

Slack messages have no custom fields, so there are no Slack custom fields to map. Values from the product's iPaaS.com custom fields can be read in 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 collection has no mapping filter, but nothing is posted until the Channel placeholder is replaced and the product/created event is turned on. If you do not plan to use this collection, leave its event turned off.

  • Trigger Events: the iPaaS.com product/created event, turned on under Outbound Data Flows. Products can also be posted on demand from the Manual Sync page.

Duplicate or Conflicting Mappings

Collision Handling

This collection has no Collision Handling Method. Slack keeps no record that a product could be matched to, so there is no record matching: every transfer is a new post. The external-id record saved after the post is what stops this collection from posting the same product again.

Other Slack Collections

None of the other default Slack collections posts a message for new products. The Add/Update Slack Low Inventory Message FROM iPaaS.com collection runs on product inventory changes, not on new products, so the two post independently.

If you add another Slack collection for products, both collections post for the same product, each with its own filter and channel. Review the filters of both before turning on their events, so each message goes only where it is wanted.

Unmapped Field Overwrite Risk

Not applicable. The collection sends data FROM iPaaS.com to Slack, and Slack keeps no record that a later transfer could overwrite. Nothing in iPaaS.com is changed by a post.

Supported Child Collections

None. This collection posts one message per product 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 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.

  • The channel must exist: the integration never creates channels. A channel that does not exist, or a private channel the Slack 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.

  • Archived channels: a message to an archived channel stops the transfer with an error. Unarchive the channel in Slack, or change the Channel mapping.

  • Channel names are normalized: a channel name is converted to Slack's channel-name rules before posting (lowercase, spaces and punctuation become hyphens, at most 80 characters), so #Catalog Updates is posted to #catalog-updates. A Slack id, such as a channel id starting with C or a member id starting with U, is used as entered.

  • Text only: messages are posted as Slack formatted text sections. Images, buttons and other interactive elements are not posted.

  • Message length: each section holds up to 3,000 characters. A longer message is split into several sections of the same Slack message, and the FollowUpMessage text, when mapped, is added at the end.

  • Rate limiting: Slack's guidance is about one message per second per channel. When Slack's rate limit is reached, the transfer is held and retried automatically once the limit resets. No action is required.

iPaaS.com Caveats

  • Errors: transfer errors, such as an unreplaced Channel placeholder, a missing channel or an empty message, appear in Dashboard / Integration Monitoring / Error Logs.

  • Bulk product loads: every product created while the product/created event is on is posted, including products created in bulk by an import or another integration. Before a large catalog load, turn the event off or add a filter if you do not want one message per product.

  • One post per product: the external-id record saved after the post is what stops this collection from posting the same product again. A product already linked to a Slack post is skipped.

Setup Requirements

iPaaS.com Configuration

  1. Replace the Channel placeholder <Enter Channel Name Here> in this collection with your channel, channel id or member lookup (see Mappings below).

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

The Outbound Data Flows page listing the Product/Created row for this collection, with its Active toggle

Slack Configuration

  • Install the Slack app in your workspace, as described in Slack V2 Installation Instructions and Slack V2 Connections and Settings.

  • Create the channel for new-product messages in Slack (for example #catalog) before turning on the event. If the channel is private, add the Slack app to it under View Channel Details > Integrations > Add Apps.

No other prerequisites apply.

Integration Flow

  1. A product is created in iPaaS.com while the product/created event is on, or a product id is entered on the Manual Sync page. A product that is already linked to a Slack post is skipped.

  2. No mapping filter is applied, so every new product continues.

  3. The Text mapping builds the message. When it returns nothing, the transfer stops with an error and nothing is posted.

  4. The text is split on spaces into sections of up to 3,000 characters. When the text was split, the FollowUpMessage text, if mapped, is added as a final section. It is not mapped by default.

  5. The Channel mapping gives the destination. An empty value, or the template placeholder left in place, stops the transfer with an error. A channel name is converted to Slack's channel-name rules; a Slack channel id or member id is used as entered.

  6. The message is posted to Slack as one message. A missing channel, a private channel without the app, an archived channel or an invalid token stops the transfer with an error. When Slack's rate limit is reached, the transfer is held and retried automatically.

  7. The Slack block id of the message's first section is saved as the product's external id for this subscription, so the product is not posted again by this collection.

The integration never edits a message it has posted. Because this collection's sync type is Add, a later change to the product is not posted. A collection that sends a record again, such as an Add/Update collection with an updated event turned on, posts a new message each time.

Mappings

Add Slack New Product Message FROM iPaaS.com

iPaaS.com data type: Product

Mapping Filter: this mapping collection does not have a mapping filter applied. Every new product is posted. To post only some products, add a filter, for example one that allows only products whose Status is Active, or only products of type Physical.

Description: posts one Slack message for each new iPaaS.com product, built by the Text formula and sent to the destination in the Channel mapping.

Mapping Type

Source Field (iPaaS.com)

Destination Field (Slack)

Description

Static

<Enter Channel Name Here>

Channel

Required. Where the new-product message is posted. Placeholder value — replace during implementation: the default mapping ships the placeholder <Enter Channel Name Here>; replace it with a channel name such as #catalog, a channel id such as C0123456789, or a member lookup (see below the table). While the placeholder is in place, every transfer stops with an error and nothing is posted.

Dynamic Formula

return ":package: *New product*\n" + Field("Name", Name) + Field("SKU", Sku) + Field("Price", Money(DefaultPrice, "$")) + Field("Type", Type) + Field("Status", Status);

Text

Required. Builds the message: a package emoji and the bold heading New product, then one labelled line each for the product's name, SKU, default price, type and status, leaving out empty values. When the formula returns nothing, the transfer stops with an error.

Channel options: replace the placeholder with one of the following before you turn on the collection's event:

  • A channel name: for example #catalog. The name is converted to Slack's channel-name rules before posting, so #Catalog Updates is posted to #catalog-updates.

  • A channel id: for example C0123456789, copied from the channel's details in Slack. An id is used exactly as entered.

  • A workspace member: change this mapping's type to Dynamic Formula and enter return await UserIdFromName("jane"); to post the message to that member instead of a channel. UserIdFromName looks for a member whose Slack username matches, then for one whose real name matches (not case-sensitive), and uses the first match it finds, so two members with the same name can resolve to the wrong person. When names repeat in your workspace, use the member id (it starts with U) or a channel instead. A formula that finds no member leaves the channel empty, and the transfer stops with an error.

Message content: Field adds one line per value with its label in bold and leaves out a line whose value is empty. It also escapes the ampersands and angle brackets Slack would otherwise read as markup, so a product name shows as typed. Money shows the default price with the currency symbol, thousands separators and two decimals. For example, a product named Trail Mug posts a message with these lines:

  • :package: New product

  • Name: Trail Mug

  • SKU: MUG-001

  • Price: $1,250.00

  • Type: Physical

  • Status: Active

The default formula uses the dollar sign. To show another currency, change the symbol in the formula, for example Money(DefaultPrice, "€"). You can add or remove lines with more Field calls, for example Field("Description", Description). The text is posted as Slack formatted text: asterisks make bold, and emoji codes such as :package: show as emoji.

The FollowUpMessage, Type, Emoji, Verbatim and BlockId destination fields are not mapped by default. FollowUpMessage is optional: when mapped, its text is added at the end of a message long enough to be split into sections. Type, Emoji and Verbatim have no effect on the posted message, and BlockId is set by Slack, so there is no need to map them.

Error Handling

Errors appear in Dashboard / Integration Monitoring / Error Logs. For the full list of messages and resolutions, see the Slack V2 Error Messages article.

  • Message text is empty: the Text formula returned nothing, so nothing was posted. Check the formula, and that the product has values for the fields it uses.

  • Channel placeholder still in place: the Channel mapping still holds <Enter Channel Name Here>. Replace it with your channel name, channel id or member lookup.

  • Channel not found or not accessible: the channel 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 under View Channel Details > Integrations > Add Apps.

  • Channel is archived: unarchive the channel in Slack, or change the Channel mapping.

  • No channel to send to: the Channel mapping returned nothing. If it looks up a member by name, check that the name exists in the Slack workspace.

  • Slack rejected the call: Slack refused the post and its reason is included in the error, for example an invalid or revoked token. Authorize the Slack app again on the subscription, or update the API Token setting.

  • Slack rate limit reached: the transfer is held and retried automatically once the limit resets. No action is required.

Testing & Validation

Test Scenarios

  1. Create a test channel in Slack (for example #ipaas-test) and set it in the Channel mapping.

  2. Create a product in iPaaS.com with a name, SKU, default price, type and status. With the product/created event on, confirm that one message is posted to the test channel with those lines. Alternatively, enter the product id on the Manual Sync page.

  3. Send the same product again through Manual Sync and confirm that no second message is posted.

  4. Create a product with an empty SKU and confirm that the SKU line is left out of the message.

  5. With the Channel placeholder still in place in a test subscription, send a product and confirm that the transfer stops with an error in Dashboard / Integration Monitoring / Error Logs and nothing is posted.

  6. If you use a member lookup, send a product and confirm that the message reaches the intended member.

Validation Checklist

  • The Channel placeholder is replaced, and the channel exists in Slack (with the app added if it is private).

  • The product/created event is turned on under Outbound Data Flows.

  • A test product posts one message with the expected lines and price format.

  • A product that was already posted is not posted again.

  • No unexpected errors appear in Dashboard / Integration Monitoring / Error Logs.

Additional Notes

Out of Scope

  • Editing or deleting messages: a posted message is never edited or deleted, and deleting a product in iPaaS.com does not post a message.

  • Product updates: this collection is designed for new products. It posts each product once and does not post again when the product changes.

  • Collision handling and record matching: not supported. Each transfer is a new post; there is no Slack record to match.

  • Data into iPaaS.com: the integration only posts messages from iPaaS.com to Slack. Nothing is read from Slack into iPaaS.com, and there is no polling or initialization.

Known Limitations

These limitations apply at the time this documentation was written.

  • A message is a snapshot: the message shows the product as it was when it was posted. Later changes to the product are not reflected in Slack.

  • Member lookup by name takes the first match: when two workspace members share a username or real name, UserIdFromName can resolve to the wrong person. When names repeat, use the member id or a channel.

  • Unused destination fields: mapping Type, Emoji or Verbatim has no effect on the posted message.

Related Documents

Related Mapping Documentation

Did this answer your question?