When configuring the new AppSheet Apps Script Task, you can pass data from the AppSheet app to the function arguments using Expressions.
The table below summarizes the type translation of an argument that gets passed through an AppSheet task.
AppSheet Data Type |
Apps Script Data Type when passed |
Example |
Boolean |
AppSheet expression: Apps Script value: |
|
Number (in milliseconds) |
AppSheet expression: Apps Script value: |
|
String (in ISO 8601 date format) |
AppSheet expression: Apps Script value: |
|
Array<Value> |
AppSheet expression: Apps Script value:
AppSheet expression: Apps Script value:
AppSheet expression: Apps Script value: |
|
Number, Decimal, and ChangeCounter |
Number |
AppSheet expression: 3.14 Apps Script value: 3.14 |
All other types |
String |
AppSheet expression: Apps Script value:
AppSheet expression: Apps Script value:
AppSheet expression: Apps Script value: |
Tips
- For date types, you can go
new Date(dateString)
to convert the date string into a native Javascript Type object - Most types are represented in their respective string format which will vary on the type. For example, a file type will return the path of the file in the provider and an email type will simply be the email as a string.