Setting server side object variables

Hi All,

I have two questions, both related to server side actions.

  1. How do I assign values to variables contained within a session object. In other words, in the screenshot below, what is the syntax for “name” in set session properties, for test[var1]?

23%20PM

  1. Similarly, how do I send complex objects via the API action?

For example, with this json body to be sent:

{
	"client_id": "{{client_id}}",
	"secret": "{{secret_key}}",
	"access_token": "ENTER_ACCESS_TOKEN_HERE",
	"start_date": "2017-01-01",
	"end_date": "2018-01-01",
	"options": {
		"count": 250,
		"offset": 100
	}
}

How do I format the input data value for “options”? I can successfully send to the api without the options value, but can not find the right syntax for the nested object.

45%20PM

Appreciate any help here!

–Ken

Community Page
Last updated: