{"id":2480,"date":"2026-06-29T20:47:46","date_gmt":"2026-06-29T15:17:46","guid":{"rendered":"https:\/\/www.smsgatewaycenter.com\/blog\/?post_type=docs&#038;p=2480"},"modified":"2026-06-29T20:47:47","modified_gmt":"2026-06-29T15:17:47","password":"","slug":"how-does-variable-mapping-work-in-multi-channel-fallback","status":"publish","type":"docs","link":"https:\/\/www.smsgatewaycenter.com\/blog\/kb\/how-does-variable-mapping-work-in-multi-channel-fallback\/","title":{"rendered":"How does variable mapping work in Multi-Channel Fallback?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Variable mapping tells the platform how to fill placeholders on WhatsApp and RCS (and other target channels) using values from the&nbsp;<strong>first channel\u2019s template<\/strong>&nbsp;(the source) or fixed static text. The first channel in your sequence is always the source.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">When mapping appears<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Variable mapping section shows only when:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>You have at least two channels in the sequence, and<\/li>\n\n\n\n<li>The source template has at least one variable, and<\/li>\n\n\n\n<li>At least one later channel\u2019s template also has variables to fill.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Placeholder styles differ by channel<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>SMS:<\/strong>\u00a0Often\u00a0<code>{#var#}<\/code>\u00a0or similar in message templates.<\/li>\n\n\n\n<li><strong>WhatsApp:<\/strong>\u00a0Numbered placeholders\u00a0<code>{{1}}<\/code>,\u00a0<code>{{2}}<\/code>.<\/li>\n\n\n\n<li><strong>RCS:<\/strong>\u00a0Depends on how the RCS template was built.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Two mapping options per target variable<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Option<\/th><th>When to use<\/th><\/tr><\/thead><tbody><tr><td><strong>From source variable<\/strong><\/td><td>The value should be the same as on the first channel\u2014OTP, customer name, order ID, etc.<\/td><\/tr><tr><td><strong>Static text (fixed value)<\/strong><\/td><td>The target channel should always show the same text every time.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Rules before save<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Every target variable must be mapped\u2014either to a source variable or static text.<\/li>\n\n\n\n<li>If you change templates or reorder channels, review mapping again.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Variable mapping tells the platform how to fill placeholders on WhatsApp and RCS (and other target channels) using values from the&nbsp;first channel\u2019s template&nbsp;(the source) or fixed static text. The first channel in your sequence is always the source. When mapping appears The Variable mapping section shows only when: Placeholder styles differ by channel Two mapping [&hellip;]<\/p>\n","protected":false},"author":118,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[1979],"doc_tag":[],"class_list":["post-2480","docs","type-docs","status-publish","hentry","doc_category-multi-channel-fallback"],"year_month":"2026-06","word_count":178,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"admin","author_nicename":"admin","author_url":"https:\/\/www.smsgatewaycenter.com\/blog\/author\/admin\/"},"doc_category_info":[{"term_name":"Multi-Channel Fallback","term_url":"https:\/\/www.smsgatewaycenter.com\/blog\/kb-cat\/multi-channel-fallback\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/docs\/2480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/users\/118"}],"replies":[{"embeddable":true,"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/comments?post=2480"}],"version-history":[{"count":0,"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/docs\/2480\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/media?parent=2480"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/doc_category?post=2480"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.smsgatewaycenter.com\/blog\/wp-json\/wp\/v2\/doc_tag?post=2480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}