Date Range
The value for this input datatype will be available in the session object in the following format:
| Attribute Name | Datatype | Description |
| Meta | map | Date Range Meta (A) |
| Value | map | The details of the date range ex: "from":"2021-04-07","to":"2021-04-19" |
| Attribute Name | Datatype | Description |
| Type | String | 'daterange' |
| value | String | "from":"2021-04-07","to":"2021-04-19" |
Sample Code:
Format received in input "session" object:
Copied{
"meta":{
"type":"daterange",
"value":{"from":"2021-04-07","to":"2021-04-19"}
},
"value":{
"from":"2021-04-07",
"to":"2021-04-19"
}
}Format to be returned in response object:
Copiedresponse=map();
response.put('daterange' , {
"from":"2021-04-07","to":"2021-04-19"
});
return response;