Siebel Unable to read property of incoming json
Siebel 22.5
Hi All,
We are trying to integrate Siebel with another application via Inbound REST. We were testing the feasibility and wrote the below script to read the properties from incoming JSON.
sOperation = Inputs.GetProperty("eventType");
sReason = Inputs.GetProperty("reason");
sPhoneNum = Inputs.GetProperty("address");
The above properties get read/rendered successfully when the incoming JSON is in the below format.
{"body":{
"eventType": "event",
"channel": "text",
"address": "+phonenum",
"groupId": " group",
"reason": "not active",
"timestamp": "2024-01-23T18:43:42.097168Z"
}}
However, these properties aren't read when the incoming JSON is the below format.
{
"eventType": "event",
"channel": "text",
"address": "+phonenum",
"groupId": " group",
"reason": "not active",