Create JSON object post method in a business rules

Fabrizio Joaqui
Mega Guru

I have to build a JSON object in this script and send in rest message:

find_real_file.png

with this data:

find_real_file.png

how can i do?

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hello @Fabrizio Joaquin 

It will be like -

{
"first_name":"${first_name}",
"last_name":"${last_name}",
"active":"${active}"
}

Where $ variable name is the field name we have set in business rule.

Also please check below video. It will clear you all queries.

ServiceNow Rest Integration

 

Kindly let me know if you have any doubts

 

Thanks
Akshay Kangankar

View solution in original post

5 REPLIES 5

Community Alums
Not applicable

Hello @Fabrizio Joaquin 

Did you get chance to look into solution provided by me. Please let me know if you need any help.

If my answer resolved your issue feel free to mark correct as well, so it will be helpful for others looking for similar query.

 

Thanks
Akshay Kangankar