Retrieve a list of supported JavaScript functions
GET https://automation.8x8.com/api/v1/accounts/:accountId/steps/functions
Automation supports scripting in inputs, outputs and select next steps using JavaScript (supports most features of ECMAScript 2023). On top of standard functions, we have added some custom functions to make scripting easier for you. Use this resource to explore our custom functions.
Request
Path Parameters
Account id
List of supported functions.
Schema
- Array [
- Array [
- ]
- ]
Name of the function.
Description of the function.
Example usage of the function.
parameters object[]required
Name of the parameter
Data type of the parameter
Indicates whether the parameter is required when calling the function.
Default value of the parameter for optional parameters.
Description of the parameter.
Example value of the parameter.
[
{
"name":"string",
"description":"string",
"example":"string",
"parameters":[
{
"name":"string",
"type":"string",
"required":true,
"default":{},
"description":"string",
"example":{}
}
]
}
]
[
{
"name":"isDayOfWeek",
"description":"Checks if a date or timestamp falls on a given day of the week. Useful to design workflows that behaves differently on different days of the week (e.g., week vs weekend).",
"parameters":[
{
"name":"timestamp",
"type":"string",
"required":true,
"default":null,
"example":"2021-05-25",
"description":"Date or a timestamp. Standard date and datetime formats are supported."
},
{
"name":"day",
"type":"string",
"required":true,
"default":null,
"example":"Monday",
"description":"Day of the week (not case sensitive)."
}
],
"example":"isDayOfWeek('2021-05-25', 'Tuesday')"
}
]
Source: https://developer.8x8.com/connect/reference/get-functions · 8x8 CPaaS Developer Docs. Synced for support deflection.
0 Comments