Unable to POST data from ServiceNow to Aruba in JSON
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 04:40 AM
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 04:54 AM
Hi,
Please try below:
var userdata = {
"name": current.u_name.toString(),
"id": {},
"company_name" : current..u_company.toString(),
"user": {
"phone":current.u_phone_number.toString(),
"email":current.u_email.toString()
}
}
I hope you are using correct field names from your table.
Are you referring custom table data?
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 11:00 PM
Thanks for your response @Anil Lande
Yes, we are using correct fields (all are type: String) and custom table data.
We are getting the error while passing as below:
{"description":"Invalid parameters : name , company_name , email , phone","error_code":400,"service":"Guest"}
Please help!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 07:52 AM
Can you please check with Aruba API team and ask them to share expected request body schema? or any API documentation.
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2023 02:27 AM
Hi @Anil Lande
Checked with them and it's working fine now.