From bfbfedf03f0fbcceb51129060db0bc25d954b33e Mon Sep 17 00:00:00 2001 From: Tejas Mahajan <141305477+mahajantejas@users.noreply.github.com> Date: Tue, 7 Oct 2025 16:17:27 +0530 Subject: [PATCH] corrected the expression for sending hsm templates using google sheets --- .../03. Flows/2. Flow Actions/12. Link Google Sheets.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/4. Product Features/03. Flows/2. Flow Actions/12. Link Google Sheets.md b/docs/4. Product Features/03. Flows/2. Flow Actions/12. Link Google Sheets.md index 966020a1e..89efc48cd 100644 --- a/docs/4. Product Features/03. Flows/2. Flow Actions/12. Link Google Sheets.md +++ b/docs/4. Product Features/03. Flows/2. Flow Actions/12. Link Google Sheets.md @@ -1,5 +1,3 @@ -> ### **10 minutes read                                                                                                                         `Intermediate`** - ___ ## Video Tutorial @@ -96,7 +94,9 @@ Let us dive in a bit deeper by looking at the steps involved : As you can see, the row input field is given an expression `@calendar.current_date` which tries to match the current date value with a `Key` value. If a match is found, then that row is chosen. -5. In the next step, `Send contact a message` is used and an expression is given in place of the template selection drop-down. The expression reads `<%= Glific.send_template("{uuid}", ["{variables}"]) %>` +5. In the next step, `Send contact a message` is used and an expression is given in place of the template selection drop-down. The expression to be added for the HSM templates which contain template variables is as follows `<%= Glific.send_template("@results.sheet.template_uuid", ["@contact.name","@contact.fields.district"] ) %>`. The variables can be added in the square brackets inside double quotes separated by commas. Refer to how @contact.name, @contact.fields.district have been added. Different contact variables or just plain strings can be added as variables. + +6. For HSM templates without any template variables, the following expression can be used `<%= Glific.send_template("@results.sheet.template_uuid", [] ) %>` ![Screenshot 2023-09-15 at 1 56 54 PM](https://user-images.githubusercontent.com/132430123/268223071-9f2730b9-9364-46fc-b062-1bbd39c102f9.png)