The CreatorCon Call for Content is officially open! Get started here.

ServiceNow to ServiceNow Rest Integration

manju5
Tera Contributor

Hi,

 

I am creating the ticket in Instance A and ticket is created in Instance B also, but my question is some times description field is appear like "undefined" when we pass the huge description. Could anyone help me why this error coming only when sending the huge description?

 

Thanks,

Manju

16 REPLIES 16

Hi,

manju5_0-1695643647085.png

I have shared business rule code screenshot. please let me know where am I wrong.

Thanks,

Manju

Remove Line 6 & 7. Add below lines:

var requestBody = {
'desc':current.description,
'data':current.u_client_
};

request.setRequestBody(JSON.stringify(requestBody));

 

Make the following changes:

1) Replace current.u_client_ with the actual field name

2) Update desc and data in the JSON with actual attribute of RestMessage JSON content

2) Add additional attributes to the JSON content based on

actual attribute of RestMessage JSON content

 

Thank you,
Palani

I have tried what you have given the above steps but it's not working.

Thanks,

Manju

Can you share the Content used in Rest Message -> HTTP Method entry

Thank you,
Palani

I have shared HTTP method screenshot below.

manju12_0-1695719436658.png

Thanks,

Manju