{"id":666,"date":"2025-05-18T04:44:58","date_gmt":"2025-05-18T04:44:58","guid":{"rendered":"https:\/\/smppcenter.com\/kb\/?p=666"},"modified":"2025-05-18T04:44:59","modified_gmt":"2025-05-18T04:44:59","slug":"difference-between-replace-and-template-replace-in-text-message-rules","status":"publish","type":"post","link":"https:\/\/smppcenter.com\/kb\/difference-between-replace-and-template-replace-in-text-message-rules\/","title":{"rendered":"What Is the Difference Between REPLACE and TEMPLATE REPLACE in Text Message Rules on SMPPCenter?"},"content":{"rendered":"\n<p>SMPPCenter\u2019s <strong><a href=\"https:\/\/smppcenter.com\">SMPP software<\/a><\/strong> offers both REPLACE and TEMPLATE REPLACE actions in Text Message rules under normalization, but they serve different purposes. Here\u2019s the difference:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>REPLACE<\/strong>:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Replaces a specific portion of the message text with the New Text, based on the Text Rule (EQUALS or STARTS WITH).<\/li>\n\n\n\n<li>Only the matching text is replaced, leaving the rest of the message unchanged.<\/li>\n\n\n\n<li><strong>Example<\/strong>:\n<ul class=\"wp-block-list\">\n<li><em>Origin Text<\/em>: \u201cYour OTP is 1\u201d<\/li>\n\n\n\n<li><em>Text Rule<\/em>: EQUALS<\/li>\n\n\n\n<li><em>New Text<\/em>: \u201cYour Code is 1\u201d<\/li>\n\n\n\n<li><em>Action<\/em>: REPLACE<\/li>\n\n\n\n<li>Result: \u201cYour Code is 1\u201d (replaces the matching portion).<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>TEMPLATE REPLACE<\/strong>:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Replaces the entire message with the New Text, ignoring the rest of the original message content.<\/li>\n\n\n\n<li>Useful for completely reformatting the message while retaining dynamic values (e.g., OTP codes).<\/li>\n\n\n\n<li><strong>Example<\/strong>:\n<ul class=\"wp-block-list\">\n<li><em>Origin Text<\/em>: \u201cYour OTP is 1\u201d<\/li>\n\n\n\n<li><em>Text Rule<\/em>: EQUALS<\/li>\n\n\n\n<li><em>New Text<\/em>: \u201cYour Verification Code for SMPP Software Login is 1. Regards SMPP Software.\u201d<\/li>\n\n\n\n<li><em>Action<\/em>: TEMPLATE REPLACE<\/li>\n\n\n\n<li>Result: \u201cYour Verification Code for SMPP Software Login is 1. Regards SMPP Software.\u201d (replaces the entire message).<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>When to Use Each<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use <em>REPLACE<\/em> for minor text adjustments, such as changing a single word or phrase (e.g., \u201cOTP\u201d to \u201cCode\u201d).<\/li>\n\n\n\n<li>Use <em>TEMPLATE REPLACE<\/em> for a complete message overhaul, such as adding branding or reformatting the entire message structure.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Best Practices<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ensure the New Text in TEMPLATE REPLACE includes any dynamic values (e.g., OTP codes) to avoid losing critical information.<\/li>\n\n\n\n<li>Test both actions with sample messages to confirm the desired output.<\/li>\n<\/ul>\n\n\n\n<p>Understanding these actions helps you customize messages effectively on <strong>SMPPCenter<\/strong>. For assistance, contact our support team.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SMPPCenter\u2019s SMPP software offers both REPLACE and TEMPLATE REPLACE actions in Text Message rules under normalization, but they serve different purposes. Here\u2019s the difference: REPLACE: TEMPLATE REPLACE: When to Use Each Best Practices Understanding these actions helps you customize messages effectively on SMPPCenter. For assistance, contact our support team.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[290],"tags":[],"class_list":["post-666","post","type-post","status-publish","format-standard","hentry","category-normalization-rules"],"_links":{"self":[{"href":"https:\/\/smppcenter.com\/kb\/wp-json\/wp\/v2\/posts\/666","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smppcenter.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smppcenter.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smppcenter.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smppcenter.com\/kb\/wp-json\/wp\/v2\/comments?post=666"}],"version-history":[{"count":0,"href":"https:\/\/smppcenter.com\/kb\/wp-json\/wp\/v2\/posts\/666\/revisions"}],"wp:attachment":[{"href":"https:\/\/smppcenter.com\/kb\/wp-json\/wp\/v2\/media?parent=666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smppcenter.com\/kb\/wp-json\/wp\/v2\/categories?post=666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smppcenter.com\/kb\/wp-json\/wp\/v2\/tags?post=666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}