- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 02:16 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2024 01:48 AM
Couple issues
request.body isn't the actual content but an object of different ways to access the body. request.body.data is likely what you're wanting.
Also, on the GlideRecord, you need to pass in the table name as new GlideRecord('incident')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2024 01:47 AM
Can you log out whats request.body.data contains ? - check if anything is received
Can you provide the exact error you get - its hard to figure out when its just "500".
You should get a message with whats failing.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 05:21 AM
HTTP 500 is an internal server error - as you're hitting a custom scripted REST API, there is likely something wrong with the script that is causing a runtime error. You can view the logs in your instance to see if an exception is being thrown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2024 01:00 AM
this is the code i am using in BR can you provide help to where and what to change if possible?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2024 01:21 AM
The issue will be in the receiving code within the API you're hitting, not within your calling code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2024 01:24 AM
ohh thanks for letting me know.. you can find same here