Unable to POST data from ServiceNow to Aruba in JSON

Ksnow
Tera Contributor

Hello,

@Amit Gujarathi @Ankur Bawiskar 

 

We have an integration with Aruba with ServiceNow, when we are trying to POST the data from ServiceNow to Aruba Name posted properly but Email address and phone number not getting posted it's showing empty.

We are passing in JSON format as attached.

var userdata = {

             "name": current.u_name,

             "id": {},

             "company_name" : current..u_company,

             "user": {

              "phone":current.u_phone_number,

              "email":current.u_email

            }

Could you please let me know what am I missing here?

Thanks for your help!

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Ksnow 

Did you check how the request body should look like? didn't they share a sample JSON request body with you?

compare that against yours.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader