cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5355
Views
15
Helpful
52
Replies

JSON in UCCX Script

Hi Team,

 

Can you guide me how to create a JSON in UCCX script.

 

Regards,

 

Jijesh

52 Replies 52

Crate string variable INC with string “INC”. Then when you get the digits do a set variable INC = INC+DigitsVar.

david

@david.macias 

I am configured the variable .screenshot below.

jijeshkt_1-1686236305099.png

 

 

 

Results below. Only taking the number

 

jijeshkt_0-1686235956525.png

 

 

No quotes just INCOutput = INC + INCresult

david

Hi David,

I used the set value and created the different varibale (INC + "") joined together and added the value in Rest call . It is getting the correct result.

Jijesh
Level 1
Level 1

@Roger Kallberg 

I am getting the null value while validating the employee ID. I have set the "if" condition but it is not matching can you suggest. How to match the "null " value

 

Jijesh_0-1694174475364.png

 

 

Your expression is checking if Employee_ID is the string "null". Try Employee_ID == "" or Employee_ID == null.

david

Jijesh
Level 1
Level 1

@david.macias 

Employee_ID == null worked and I tested now. Thank you David