Skip to main content

iPaaS.com to Powered By Text Thank-you Text Mapping Documentation

How a sale in iPaaS.com sends one thank-you text to an active Powered By Text subscriber: the mappings, the default filter and the send-once rules.

Summary

A new iPaaS.com transaction of type Order (a gift or a sale) can send one thank-you text through Powered By Text, using the Add Powered By Text Thank-you Text FROM iPaaS.com mapping collection, by automatic transfer or Manual Sync. The text goes to the buyer's mobile number only when that number is already an active subscriber of your Powered By Text group, and each transaction is texted at most once. Nothing is recorded on a Powered By Text contact and no money moves; each thank-you text is a real SMS and uses Powered By Text credits.

ID Format

Manual Sync ID Format

Enter the iPaaS.com transaction id: the whole number shown on the transaction in iPaaS.com (for example 183264). The same checks as an automatic transfer apply, so a transaction that was already thanked is not texted again.

External ID Format

After a text is sent, iPaaS.com saves the Powered By Text send id as the transaction's external-ID link. The integration names each send with a reference made of the word ipaas, your iPaaS.com subscription id and the iPaaS.com transaction id, joined by hyphens:

ipaas-{subscription id}-{transaction id}

Powered By Text returns that reference as the send id, and it becomes the external ID. Because the link exists, later transfers of the same transaction run as updates and send nothing. When a transaction is skipped because its number is not an active subscriber, no link is saved.

Deleted Record Support

Deletes are not supported. A thank-you text cannot be changed or deleted once sent, and the collection ships with the Add action only. If a delete is ever sent to this collection, the integration refuses it and nothing changes in Powered By Text.

Custom Field Support

This collection writes no custom fields. It reads one iPaaS.com customer custom field: when the transaction carries no phone, the integration texts the number in the buyer's Powered By Text Mobile Number custom field (which the Add/Update Powered By Text Subscriber TO iPaaS.com collection fills). To text a number held in another field, use the LookupPhoneNumber function described in the Powered By Text Mapping Functions article.

Mapping Collection Status

  • Status: Enabled. The filter lets new orders and gifts through, but no text is sent until the event below is turned on.

  • Trigger Events: the transaction/created event, turned on for this collection under Outbound Data Flows in the iPaaS.com subscription configuration. Automatic transfers do not run until it is turned on. Manual Sync is also available.

Whether a transfer runs as an add or an update is decided by the transaction's existing external-ID link, not by the event: a transaction already linked to a thank-you text runs as an update, and an update sends nothing.

Duplicate or Conflicting Mappings

This is the only Powered By Text collection for transactions, and it only sends texts, so it does not conflict with another collection. The welcome text a new subscriber receives comes from the Powered By Text subscriber collection and is separate from this thank-you text.

If two of your source systems send the same sale to iPaaS.com (for example a store order and an invoice), each copy is its own transaction. Filter this collection to one of them so the buyer is thanked once.

Collision Handling

This collection has no Collision Handling Method. It creates no record in Powered By Text that could collide with an existing one: each transfer sends one text, and the checks below keep a transaction from being texted twice.

Duplicate Prevention

The integration uses two checks:

  • The external-ID link: once a text is sent, the transaction is linked to it, and every later transfer of that transaction is an update that sends nothing.

  • The message report check: for a transaction with no link, after confirming the number is an active subscriber and before sending, the integration reads your group's Powered By Text message report for the current and previous day (UTC). It looks for an outgoing one-to-one text to the same mobile number whose wording contains this transaction's full Message text. When it finds one, it sends nothing, logs a warning, and saves the transaction's link, so later transfers of the transaction send nothing as well. This protects against a second text when a transfer is retried after the text went out.

What the report check matches, and what it does not:

  • It matches on the number and the wording, not on the transaction: the message report does not show the send's reference, so the check cannot tell which transaction a text came from. Two sales to the same number on the same or previous day that produce exactly the same wording get one text. With the default wording, this happens when the buyer's first name and the total are the same.

  • Texts from elsewhere count: a one-to-one text sent to the number in that window from Powered By Text or another system that contains the same wording also stops the thank-you. A text whose wording differs, such as a different total, does not.

  • Template sends: when a TemplateId is mapped and Message is left blank, the integration sends the template's own text, and the check looks for that text. When the template holds a variable such as {{fname}}, the check looks for the longest part of the text without a variable.

  • Report delay: a send can take a few minutes to appear in the message report, so two identical sales sent minutes apart may each be texted.

  • A very busy group: when the group sent more than 10,000 one-to-one texts in the current and previous day, the check cannot finish. Nothing is sent, and the transfer fails and is retried later.

Include something specific to the sale, such as the total, in the wording so that two different sales to one person are not treated as one.

Supported Child Collections

None. The thank-you text is built from the transaction and its addresses; the collection has no child collections.

System Caveats

Powered By Text Caveats

  • Active subscribers only: the text is sent only when the number is an active subscriber of the group in the Group ID setting. A number that is not in the group, has opted out or is still pending is skipped without an error, and no link is saved. The integration never subscribes a number in order to send a thank-you.

  • Consent: Powered By Text requires documented consent before a number is texted. This collection texts only numbers that are already subscribed to the group.

  • Credits: each thank-you text is a real SMS and uses Powered By Text credits. A standard SMS holds 160 characters; check the credit use of longer texts with Powered By Text.

  • Carrier opt-out: a phone that opted out by texting STOP to its carrier can still show as subscribed in the group. Powered By Text then refuses the text, nothing is sent, and the error appears in Dashboard / Integration Monitoring / Error Logs. Powered By Text can also accept the text and mark it as failed afterwards in its message report; then no error appears in iPaaS.com and the sale counts as thanked, so it is not sent again. Validate this case in a staging subscription before relying on it in production.

  • Rate limiting: when Powered By Text's rate limit is reached, iPaaS.com holds the transfer and runs it again automatically after a short wait. No action is required.

  • No answer from Powered By Text: when Powered By Text does not answer the send, or answers with a server error, the text may have gone out. The integration links the transaction and does not send it again, and the error appears in Dashboard / Integration Monitoring / Error Logs.

iPaaS.com Caveats

  • A phone is needed: iPaaS.com customers have no phone field of their own, so the number comes from an address phone or the Powered By Text Mobile Number custom field. A transaction with no phone on itself or its customer fails with a missing mobile number error; keep such transactions out with the filter if they are expected.

  • The total as iPaaS.com holds it: the default wording shows the transaction total with two decimals and no currency symbol.

  • The filter decides when a text is sent: only transactions that pass the filter at the time they are sent to this collection are thanked, and an update never sends a text. A sale that your source system first writes with a skipped status (such as Draft or Awaiting Payment) is not thanked when it is created.

Integration-Specific Caveats

  • Subscribed after the sale: a buyer who subscribes after the sale is not texted for it automatically. Send the transaction again from the Manual Sync page once the number is subscribed.

  • Same wording, one text: see Duplicate Prevention above. Validate the report delay and the wording match in a staging subscription before relying on them in production.

Setup Requirements

The integration-wide setup (the Powered By Text credentials, the Org Unit ID and Group ID settings, and the Mobile Country Code setting) is described in the Powered By Text Installation Instructions and Powered By Text Connections and Settings articles and is not repeated here. For this collection:

  1. Make sure buyers who should be thanked are active subscribers of the group, for example through the Add/Update Powered By Text Subscriber FROM iPaaS.com collection or by texting your keyword.

  2. Edit the Message mapping to your own wording (see Tailoring the collection to your source systems below).

  3. Review the filter against the types and statuses your source systems write.

  4. Send one test sale with Manual Sync and confirm the text arrives.

  5. Turn on the transaction/created event for this collection under Outbound Data Flows.

No webhook setup is needed in Powered By Text for this collection.

Integration Flow

When a transaction is sent to this collection, the integration:

  1. Applies the filter. A transaction that does not pass the filter is skipped silently.

  2. Chooses add or update. A transaction that already has an external-ID link runs as an update, and an update sends nothing.

  3. Checks the wording. The Message mapping (or a TemplateId) must have a value, and none of Message, TemplateId or From may begin with the letters REPLACE in any capitalization (a wording such as "Replacement…" is refused too), or nothing is sent and the transfer fails.

  4. Checks the transaction id. The TransactionId mapping must have a value, or nothing is sent and the transfer fails, because the send could not be named or found again.

  5. Finds the mobile number. It uses the MobileNumber mapping: by default the phone on the transaction's primary billing address, else the first address phone on the transaction. When that comes out blank, it reads the buyer's iPaaS.com customer (from CustomerId) and uses the customer's Powered By Text Mobile Number custom field, then the phone on the customer's primary billing address, then any other address phone on the customer. When no number is found, nothing is sent and the transfer fails.

  6. Reads the number. The number is read as digits with the country code, using the Mobile Country Code setting when the number has none. A number that cannot be read fails the transfer.

  7. Checks the subscriber. It looks the number up in the Powered By Text group. When the group lists the number twice, the transfer fails. When the number is not an active subscriber, nothing is sent and the transfer ends without an error.

  8. Checks for an earlier send. It reads the message report as described under Duplicate Prevention. When it finds this text already sent to the number, it links the transaction and sends nothing.

  9. Sends the text. It sends one one-to-one SMS to that number only, never subscribing it, named with the transaction's reference, and saves the reference as the transaction's external ID.

Mappings

Add Powered By Text Thank-you Text FROM iPaaS.com

iPaaS.com data type: Transaction

Mapping Filter

// New orders and gifts that are not cancelled, refunded, returned, drafts, on hold or unpaid (returns, quotes and invoices are other types)
return Type == "Order" && Status != "Cancelled" && Status != "Refunded" && Status != "Returned" && Status != "Draft" && Status != "Awaiting Payment" && Status != "On Hold";

Filter Description: only transactions whose Type is Order are thanked. Transactions whose Status is Cancelled, Refunded, Returned, Draft, Awaiting Payment or On Hold are skipped. Other transaction types, such as Invoice, Quote and Return, are skipped too, so a system that writes its sales into iPaaS.com with another type is never thanked. Transactions with any other status, including Pending, Processing, Complete and Partially Refunded, are thanked. A skipped transaction is not texted and logs no error.

Description: sends one thank-you text through Powered By Text for each new transaction that passes the filter, to the buyer's mobile number, when that number is an active subscriber of the group.

Tailoring the collection to your source systems

The default wording and filter are a starting point. Before you turn the collection on, adjust both to the systems that write transactions into iPaaS.com:

  • Check each source system's type and status: look at a recent sale from each giving, store or event system in iPaaS.com and note the type and status it carries. Change the filter's type or status conditions if a system writes its sales differently.

  • Recurring gifts: if your giving platform sends every installment of a recurring gift as a new order, add a condition so that only the first installment is thanked, using the field that system's integration sets to mark installments.

  • The same sale from two systems: if two systems send the same sale (for example a store order and an invoice), filter this collection to one of them.

  • Sales you never want to thank: add a condition for them. For example, to skip transactions with no total, add && Total > 0 before the closing semicolon.

  • Transactions without a phone: if some of your systems write transactions with no phone on the transaction or its customer, add a condition that keeps them out, so they do not fail with a missing mobile number error.

  • Wording per audience: edit the quoted pieces of the Message formula. Example wordings for a buyer named Sam with a total of 25.00:

    • Donations: Thank you Sam! Your gift of 25.00 makes a difference. Reply STOP to opt out.

    • Retail orders: Thanks for your order, Sam! We received your payment of 25.00. Reply STOP to opt out.

    • Events: Thank you Sam for registering! Your payment of 25.00 is confirmed. Reply STOP to opt out.

Keep the text under 160 characters and keep an opt-out line, which is good practice for text messaging. Validate each filter condition and wording change in a staging subscription with one test sale before relying on it in production.

Field Mapping Table

Mapping Type

Source Field (iPaaS.com)

Destination Field (Powered By Text)

Description

Dynamic Formula

var billing = Addresses != null ? Addresses.FirstOrDefault(a => a.IsPrimaryBilling && !string.IsNullOrWhiteSpace(a.PhoneNumber)) : null; var any = Addresses != null ? Addresses.FirstOrDefault(a => !string.IsNullOrWhiteSpace(a.PhoneNumber)) : null; return billing != null ? billing.PhoneNumber : (any != null ? any.PhoneNumber : null);

MobileNumber

Required. The mobile number the text goes to: the phone on the transaction's primary billing address, else the first address on the transaction that has a phone. When it comes out blank, the integration uses the buyer's customer (see CustomerId). Any common phone format is accepted. When no number is found anywhere, nothing is sent and the transfer fails. To use a number held in another field, replace the formula with the LookupPhoneNumber function.

Dynamic Formula

var billing = Addresses != null ? Addresses.FirstOrDefault(a => a.IsPrimaryBilling) : null; var name = billing != null && !string.IsNullOrWhiteSpace(billing.FirstName) ? " " + billing.FirstName.Trim() : ""; return "Thank you" + name + "! We received your gift of " + Total.ToString("0.00") + ". Reply STOP to opt out.";

Message

Required. The wording of the text. The default thanks the buyer by the first name on the primary billing address (or just "Thank you" when there is none), gives the total with two decimals and no currency symbol, and ends with an opt-out line: Thank you Sam! We received your gift of 25.00. Reply STOP to opt out. A blank text is refused. The wording is also what the duplicate check matches on. Edit it before you turn the collection on.

Dynamic Formula

return CustomerId != null ? CustomerId.ToString() : null;

CustomerId

Recommended. The buyer's iPaaS.com customer id. Used when MobileNumber comes out blank: the integration reads that customer and texts its Powered By Text Mobile Number custom field, else its address phone (primary billing address first). A LookupPhoneNumber mapping reads the field it names from this customer, because the thank-you text carries none of the transaction's own fields. Nothing is written to the customer. Without it, a transaction with no phone of its own fails with a missing mobile number error, and so does every transaction when MobileNumber is a LookupPhoneNumber mapping.

Dynamic Formula

return Id != null ? Id.ToString() : null;

TransactionId

Required. The iPaaS.com transaction id. It names the send, and that name becomes the external ID that links the transaction to its text, so a linked transaction is not texted again. When it comes out blank, nothing is sent and the transfer fails. Keep this mapping as shipped.

The two longer formulas, as shipped:

MobileNumber

var billing = Addresses != null ? Addresses.FirstOrDefault(a => a.IsPrimaryBilling && !string.IsNullOrWhiteSpace(a.PhoneNumber)) : null;
var any = Addresses != null ? Addresses.FirstOrDefault(a => !string.IsNullOrWhiteSpace(a.PhoneNumber)) : null;
return billing != null ? billing.PhoneNumber : (any != null ? any.PhoneNumber : null);

Message

var billing = Addresses != null ? Addresses.FirstOrDefault(a => a.IsPrimaryBilling) : null;
var name = billing != null && !string.IsNullOrWhiteSpace(billing.FirstName) ? " " + billing.FirstName.Trim() : "";
return "Thank you" + name + "! We received your gift of " + Total.ToString("0.00") + ". Reply STOP to opt out.";

Optional fields you can add

  • TemplateId: the id of an Active text template in your Powered By Text group, to send instead of a text you write in Message. Powered By Text needs the text with every send, so the integration reads the template's text from Powered By Text and sends it unchanged, with the template id. An id the group doesn't have, an inactive template, or a template with no text is refused, and nothing is sent. The message report check then looks for the template's text (see Duplicate Prevention).

    • Give only one of the two a value for each transaction. When Message and TemplateId both have a value, the integration sends both, and Powered By Text sends the template's text, not the Message text (at the time this documentation was written). The check for an earlier send then looks for the Message text, which was not sent. So the mapping you don't want for a transaction must return null.

    • Always send the template: add a TemplateId mapping (Dynamic Formula) return "your-template-id";, with your template's id in place of your-template-id, and change the Message formula to return null;.

    • Send the template for some sales only: for example, the template for gifts of 100 or more and the default wording for the rest. TemplateId (Dynamic Formula): return Total >= 100 ? "your-template-id" : null;. Message: add if (Total >= 100) return null; at the start of the default formula, so it returns null whenever the template is used.

  • From: a sender or group name Powered By Text shows at the start of the text.

Error Handling

Errors from this collection appear in Dashboard / Integration Monitoring / Error Logs. The full list, with every message and its resolution, is in the Powered By Text Error Messages article. The messages below name the transaction and show only the last digits of the number.

  • "The transaction has no mobile number to text (the Mobile Number mapping came out blank)": no phone was found on the transaction or its customer. Add a mobile number to the customer or the billing address in the source system, or keep such transactions out with the filter.

  • "... found no phone number: the field is blank or missing on ...": a LookupPhoneNumber mapping found nothing in the field it names. Check the field name in the mapping, or add the number to the customer in its source system, then re-send.

  • "The transaction's mobile number (ending ...) can't be read as a mobile number for the Mobile Country Code setting": correct the number in the source system, or the Mobile Country Code setting, then re-send the transaction.

  • "The thank-you text came out blank (no Message and no Template Id), so nothing was sent": check the Message formula against the transaction's values, then re-send the transaction.

  • "The thank-you's Template Id ... can't be sent (...), so nothing was sent": the reason in brackets says whether the group has no template with that id, the template isn't Active, or it has no text. Map the id of an Active text template from your group's templates in Powered By Text into TemplateId (or map Message instead), then re-send the transaction.

  • "The thank-you text mapping still holds the template's REPLACE placeholder, so nothing was sent": replace the placeholder with your message or sender name, then re-send the transaction.

  • "The thank-you text's Transaction Id mapping came out blank ...": map the transaction's Id into TransactionId (the default mapping does), then re-send the transaction.

  • "Powered By Text has ... subscribers in the group with the number ending ..., so the integration can't tell which one is the person": remove the duplicates in Powered By Text, then let the retry run or re-send the transaction.

  • "The group sent more than 10000 one-to-one texts today and yesterday, so the check for an earlier thank-you text for this transaction couldn't finish, and nothing was sent ...": iPaaS.com retries the transfer later, when the report is shorter. Dismiss the error if the thank-you is no longer wanted.

  • "Powered By Text refused the thank-you text for transaction ... and sent nothing ...": the phone has most likely opted out at its carrier by texting STOP. Dismiss the error if the person opted out. If they text UNSTOP to the group's number, the retry sends the thank-you. Powered By Text can also accept the text and mark it as failed afterwards in its message report; then no error appears in iPaaS.com and the sale counts as thanked, so it is not sent again. Validate this case in a staging subscription before relying on it in production.

  • "Powered By Text gave no answer to the thank-you text for transaction ..., so it may have been sent ...": the same applies to a server error. The transaction is linked and the text is not sent again. Check Powered By Text's message report; if the buyer did not get the text, send a thank-you from Powered By Text yourself.

  • "Powered By Text's rate limit was reached ...": iPaaS.com holds the transfer and runs it again automatically. No action is required.

Two outcomes are logged as warnings, not errors, and need no action: a number that is not an active subscriber of the group (nothing is sent), and a thank-you text already found in the message report (the transaction is linked and nothing is sent).

Testing & Validation

WARNING: Powered By Text's sandbox and production both send real texts to real phones. Test only with mobile numbers whose owners have agreed to receive the texts.

Test Scenarios

  1. Subscribe a test number to the group. Create a new transaction of type Order with a status the filter allows and that number on the primary billing address. Send it and confirm one thank-you text arrives with the expected wording, and that the transaction now has an external-ID link.

  2. Send the same transaction again (for example from the Manual Sync page) and confirm no second text arrives.

  3. Create a transaction for a number that is not subscribed to the group, or has opted out. Confirm no text is sent and no error appears in Dashboard / Integration Monitoring / Error Logs.

  4. Create a transaction with no phone on its addresses whose customer has the Powered By Text Mobile Number custom field filled with the subscribed test number. Confirm the text goes to that number.

  5. Create a transaction with no phone on itself or its customer. Confirm nothing is sent and a missing mobile number error appears.

  6. Create transactions with a skipped status (such as Cancelled or Draft) and a skipped type (such as Invoice). Confirm neither is texted.

  7. Send a transaction by its iPaaS.com transaction id from the Manual Sync page and confirm the text arrives.

  8. For each source system you connect, send one real-shaped test sale and confirm the filter and wording behave as you expect.

Validation Checklist

  • The Message mapping holds your own wording, under 160 characters, with an opt-out line and something specific to the sale.

  • The filter matches the types and statuses each of your source systems writes, and keeps out duplicates, recurring installments and transactions without a phone as needed.

  • Buyers who should be thanked are active subscribers of the group in the Group ID setting.

  • The Mobile Country Code setting matches the numbers your systems write without a country code.

  • The transaction/created event is turned on for this collection under Outbound Data Flows only after the test sale succeeded.

Additional Notes

Out of Scope

  • Updates and deletes: only Add is supported. An update sends nothing, and a thank-you text cannot be changed or deleted once sent.

  • Recording the sale in Powered By Text: the sale is not written to Powered By Text; only the text is sent.

  • Subscribing the buyer: this collection never subscribes a number and never transfers the buyer's customer to Powered By Text.

Known Limitations

  • Same wording, one text: at the time this documentation was written, two sales to one number on the same or previous day (UTC) with exactly the same thank-you wording get one text, and another one-to-one text to that number containing the same wording also stops the thank-you.

  • Report delay: at the time this documentation was written, a send can take a few minutes to appear in Powered By Text's message report, so two identical sales sent minutes apart may each be texted. Validate this behavior in a staging subscription before relying on it in production.

  • Any hour: at the time this documentation was written, a thank-you goes out as soon as its transaction transfers, day or night. To limit sending hours, adjust when your source system sends sales to iPaaS.com, or the filter (see Powered By Text Known Limitations, item 23).

  • Carrier-blocked phones: Powered By Text can also accept the text and mark it as failed afterwards in its message report; then no error appears in iPaaS.com and the sale counts as thanked, so it is not sent again. Validate this case in a staging subscription before relying on it in production.

  • Subscribed numbers only: at the time this documentation was written, a thank-you text is sent only when the number is an active subscriber of the group; a buyer who subscribes after the sale is not texted for it automatically.

Related Documents

Did this answer your question?