- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2024 11:12 PM
when I am trying to insert a incident record in source instance it should compare in target instance incident table with same caller id incidents and if the count is more than 5 allow the creation of incident else abort the action.
but I am not getting the count and list of incidents in the body when try to see them in the log.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2024 12:38 AM - edited 07-31-2024 01:35 AM
Hi @KM SN ,
I think you're looking for the X-Total-Count, which is part of the Header, not the body...
Probably something like : var count = response.getHeader('X-Total-Count');
Hope this helps,
Hayo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2024 10:15 PM
Hi @KM SN ,
It is the total number of records in the full collection.
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2024 10:15 PM
Hi @KM SN ,
It is the total number of records in the full collection.
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2024 02:39 AM
Hi @KM SN ,
I see the SN_Learn has already answered the question.
For all other statuscodes, headers and information in the response, please check out the link: