Summary
The Add/Update Slack Low Inventory Message FROM iPaaS.com mapping collection posts a Slack message when a product's available stock at a location falls to or below a reorder level, so the team watching a Slack channel (for example #inventory) can restock in time. It reads iPaaS.com Product Inventory records, each the stock of one product at one location, and is triggered by the product inventory outbound events or by Manual Sync. Because the sync type is Add/Update, every inventory change that still meets the filter posts a new message; Slack keeps no copy of the inventory record.
ID Format
Manual Sync ID Format
On the iPaaS.com Manual Sync page, enter the iPaaS.com id of the product inventory record to post a message for it. This is the id of the inventory record, not the product id.
External ID Format
After a successful post, iPaaS.com saves the Slack block id of the first section of the posted message as the external id, a short identifier generated by Slack. It is saved on a dedicated external-id record for the inventory record and this subscription. On this Add/Update collection the saved link does not stop later posts: each qualifying change posts a new message.
Deleted Record Support
Deletion is not supported. The integration does not delete or change Slack messages, delete mappings are not included in the default template, and deleting an inventory record in iPaaS.com posts nothing and leaves any earlier message in Slack as it was. Do not turn on deleted outbound events for this collection.
Custom Field Support
Slack messages have no custom fields, so Slack custom fields are not supported. The Text formula can read the inventory record's iPaaS.com custom fields to add them to the message. Validate this in a staging subscription before relying on it in production.
Mapping Collection Status
Status: Enabled, with a mapping filter that lets through only inventory records at or below the reorder level (see Mappings below). Until the Channel placeholder is replaced, those transfers stop with an error and nothing is posted. To turn the collection off without deleting it, set its filter to
return false;.Trigger Events: the iPaaS.com
product/inventory/updatedoutbound event (posts when a stock change leaves the product at or below the level) andproduct/inventory/created(also posts when a new inventory record starts at or below it). Nothing is sent automatically until these events are turned on.
Duplicate or Conflicting Mappings
Collision Handling
This collection has no Collision Handling Method. Collision handling and record matching are not supported: the integration never looks for an existing Slack message, and every transfer is a new post.
Other Collections on the Same Data Type
The default template has one collection on the Product Inventory data type: Add/Update Slack Low Inventory Message FROM iPaaS.com. If a second collection on the Product Inventory data type is added to the same subscription, both post for the same inventory change, each with its own filter and channel. Review the filter and channel of each collection on the same data type before turning on the events, so a change is not posted twice.
Unmapped Field Overwrite Risk
Not applicable. Slack keeps no record that a transfer could overwrite: the integration only posts new messages.
Supported Child Collections
None. This collection 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 asUserIdFromName, to read the workspace member list; authorizing grants both.Existing channel: the channel must already 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 choose View Channel Details > Integrations > Add Apps. An archived channel also stops the transfer.
Channel names: a channel name is changed to Slack's channel-name rules before posting (lowercase, spaces and punctuation become hyphens, at most 80 characters), so
#Inventory Alertsposts to#inventory-alerts. A channel id or member id is used as given.Message length: Slack accepts up to 3,000 characters per section. Text longer than that is split at spaces into several sections of the same message. This collection does not map a follow-up notice for split messages.
Formatting: the message is posted as Slack text sections, with Slack formatting such as bold and emoji codes. Images and buttons are not posted.
Rate limit: Slack's guidance is about one message per second per channel. When Slack applies its rate limit, the transfer is held and retried automatically; no action is needed, but messages can arrive late when many inventory records change at once.
iPaaS.com Caveats
Product inventory only: this collection reads product inventory records. Inventory of product variants is a separate iPaaS.com data type (Product Variant Inventory) and is not posted by this collection.
Ids, not names: an inventory record holds the product and location ids, so the message shows ids. Look the product up by its id in iPaaS.com.
One message per qualifying change: the filter sees only the current quantities, so each change that leaves stock at or below the level posts again, even if the level was already reached.
Setup Requirements
iPaaS.com Configuration
Replace the Channel placeholder on this collection with your channel, channel id or member lookup (see Mappings below).
Review the reorder level in the mapping filter and change it if 5 is not right for your business.
On the subscription's settings page, click the Outbound Data Flows icon in the toolbar. Turn on the Active toggle in the Product/Inventory/Updated row, and in the Product/Inventory/Created row if new inventory records that start low should also post. Both rows list this collection under Mapping Collections. No automatic transfers occur until these events are turned on. Manual Sync does not need the events.
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 that should receive the messages (for example
#inventory) if it does not exist yet. If it is private, add the iPaaS.com app to it (View Channel Details > Integrations > Add Apps).
There are no other prerequisites.
Integration Flow
An inventory record is created or updated in iPaaS.com (with the matching outbound event turned on), or its id is entered on the Manual Sync page.
The mapping filter checks the available quantity. A record above the reorder level is skipped without a message or an error.
The Text mapping builds the message. If it returns nothing, the transfer stops with an error and nothing is posted.
The text is split at spaces into sections of up to 3,000 characters. When it is split, a follow-up notice is added only if a FollowUpMessage mapping is present; this collection does not map one.
The Channel value is checked. An empty value, or the template placeholder left in place, stops the transfer with an error. A channel name is changed to Slack's channel-name rules; a channel id or member id is used as given.
The message is posted to Slack. A missing, private (without the app) or archived channel stops the transfer with an error. When Slack applies its rate limit, the transfer is held and retried automatically.
The Slack block id of the first section is saved as the external id of the inventory record.
A later update of the same inventory record runs the same steps and posts a new message; the earlier message is never edited or deleted.
Mappings
Add/Update Slack Low Inventory Message FROM iPaaS.com
iPaaS.com data type: Product Inventory
Mapping Filter:
// Stock at or below 5 available units. Change 5 to your own reorder level. return QtyAvailable <= 5;
Filter Description: the filter keeps an inventory record only when its available quantity (QtyAvailable) is 5 or less. Records with more than 5 available are skipped without a message or an error. The comment line above the condition explains the level and has no effect.
The level 5 is a starting default, not a required value. Subscribers or their MiSP set it to their own reorder level, for example return QtyAvailable <= 10;. To watch only some locations, add a condition on the location id, for example return QtyAvailable <= 5 && LocationId == 12; where 12 is an example iPaaS.com location id. Validate a changed filter in a staging subscription before relying on it in production.
Description: posts a low inventory message to the mapped Slack channel or member for each inventory record that passes the filter.
Mapping Type | Source Field (iPaaS.com) | Destination Field (Slack) | Description |
Static |
| Channel | Required. Sets where the low inventory message is posted: a Slack channel, or one workspace member. The template ships a placeholder that must be replaced (see below). |
Dynamic Formula |
| Text | Required. Builds the message: a :warning: Low inventory heading followed by one bold-labeled line each for the iPaaS.com product id, the location id, the available quantity and the on-hand quantity. If it returns nothing, the transfer stops with an error. |
Placeholder value — replace during implementation: the Channel mapping ships the placeholder value <Enter Channel Name Here>. Until subscribers or their MiSP replace it, every inventory change that meets the filter stops with an error in Dashboard / Integration Monitoring / Error Logs and nothing is posted. Replace it with one of these:
A channel name, for example
#inventory. Names are changed to Slack's channel-name rules before posting, so#Inventory Alertsposts to#inventory-alerts.A Slack channel id, for example
C0123ABCD, used exactly as given.One member: change this mapping's type to Dynamic Formula and enter
return await UserIdFromName("jane");to send the message to that member's direct messages. The lookup matches the member's Slack username, then their real name, ignoring case, and takes the first match, so two members with the same name can resolve to the wrong person. Where names repeat, use the member's id (it starts with U) or a channel instead. If no member matches, the transfer stops with an error because no channel was found.
The channel must already exist in Slack, and a private channel needs the iPaaS.com app added to it. An archived channel stops the transfer: unarchive it in Slack or change this mapping.
Text formula behavior: each Field call writes one line with its label in bold and leaves the line out when the value is empty, so a record with no on-hand quantity has no On hand line. A quantity of 0 is shown. Subscribers or their MiSP can change the wording or add lines, for example + Field("Cost", Cost) to show the inventory record's cost. Text longer than 3,000 characters is split into several sections of the same message, at spaces.
Lookup Translation Tables
None. This collection uses no lookup translations.
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.
Empty message text: the Text mapping returned nothing, so there was no message to send. Check that the Text mapping is present and that its formula returns text for this record.
Placeholder left in Channel: the Channel mapping still holds <Enter Channel Name Here>. Replace it with your channel name, channel id or member lookup, or set the filter to
return false;if you do not use this collection.Channel not found or private: Slack cannot post to the channel because it does not exist, or it is private and the iPaaS.com app has not been added to it. Create the channel in Slack, or add the app to it (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. When it looks up a member by name, check that the name exists in the Slack workspace, or use the member's id.
Invalid token: Slack rejected the post and the error shows Slack's reason, such as
invalid_authortoken_revoked. Authorize the app again with the Authenticate icon (the padlock) on the subscription, or enter a current Bot User OAuth Token in the API Token setting.Slack rate limit: the transfer is held until Slack's limit resets and is then retried automatically. No action is needed; if it happens often, reduce how many inventory changes post at once, for example with a lower reorder level or a location condition in the filter.
Validation Rules
Mapping filter: only inventory records whose available quantity (
QtyAvailable) is at or below the reorder level in the filter (5 by default) are posted. Other records are skipped without a message or an error.Text: required. An empty result stops the transfer with an error and nothing is posted.
Channel: required. An empty value, or the template placeholder left in place, stops the transfer with an error and nothing is posted.
Testing & Validation
Test Scenarios
Create a test channel in Slack (for example
#inventory-test) and set it in the Channel mapping.Pick an inventory record whose available quantity is at or below the reorder level and send it through Manual Sync with its inventory record id, or change its stock with
product/inventory/updatedturned on. Confirm the message appears in the test channel with the product id, location id, available and on-hand quantities.Change the stock of the same record again while it stays at or below the level and confirm a new message is posted.
Send a record whose available quantity is above the level and confirm nothing is posted and no error is logged.
Leave the placeholder in Channel (or use a channel that does not exist) and confirm the transfer stops with an error in Dashboard / Integration Monitoring / Error Logs.
Validation Checklist
The Channel placeholder is replaced with a channel that exists, and the app is added if it is private.
The reorder level in the filter matches your business.
The outbound events are turned on in Outbound Data Flows.
A test post appears in the expected channel with the expected values.
The error log shows no errors for the test records.
Additional Notes
Out of Scope
Editing or deleting messages: a posted Slack message is never edited or deleted. Deleting an inventory record in iPaaS.com posts nothing.
Transfers TO iPaaS.com: the integration only posts messages from iPaaS.com. Slack data is not read back, polled or initialized.
Collision handling and record matching: not supported. Every transfer is a new post.
Slack custom fields: not supported. Slack messages have no custom fields.
Known Limitations
At the time this documentation was written:
New message on each update: a later change to the same inventory record posts a new message; the earlier message stays as it was.
Ids instead of names: the message shows the product and location ids, not their names.
Unused mappings: mappings to Type, Emoji or Verbatim have no effect on the posted message.
Member lookups by name:
UserIdFromNamelooks for a member whose Slack username matches, then one whose real name matches, ignoring case, and takes the first match, so two members with the same name can resolve to the wrong person. Use a member id or a channel where names repeat.
Related Documents
Related Mapping Documentation

