Skip to content

Commit bfbfedf

Browse files
authored
corrected the expression for sending hsm templates using google sheets
1 parent fef017f commit bfbfedf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/4. Product Features/03. Flows/2. Flow Actions/12. Link Google Sheets.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
> ### **10 minutes read                                                                                                                         `Intermediate`**
2-
31
___
42

53
## Video Tutorial
@@ -96,7 +94,9 @@ Let us dive in a bit deeper by looking at the steps involved :
9694

9795
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.
9896

99-
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}"]) %>`
97+
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.
98+
99+
6. For HSM templates without any template variables, the following expression can be used `<%= Glific.send_template("@results.sheet.template_uuid", [] ) %>`
100100

101101
![Screenshot 2023-09-15 at 1 56 54 PM](https://user-images.githubusercontent.com/132430123/268223071-9f2730b9-9364-46fc-b062-1bbd39c102f9.png)
102102

0 commit comments

Comments
 (0)