Answered

Get_REST_VALUE 'BODY_JSON_COUNT' not returning expected value

Note:  A couple of releases ago this used to work fine. Not sure why it doesn't now.

This used to return '2' which is the count that I am expecting since there are 2 ngbAlerts however it keeps returning '1'.  

 

Using Get_Rest_Value command with the following:

 

Here is the response JSON format:

 

0
2 comments
Avatar
Joseph Hamdan

Hi Dominic,

When we use count in the Get_REST_Value command, we operate with nodes and not with a node's values.
In your case, you use JSONPath ngbAlerts, so you are looking for ngbAlerts nodeThere is only one node ngbAlerts, that is array of 2 objects, but still only one node.
If you wants to get number of the element in array, you need to use array element related field, for example, ngbAlerts.alertGraphicUrl

Regards,
Subject7 Team

0
Comment actions Permalink
Avatar
Dominic Luminello

That worked!  Thank you.

I could have sworn we used ngbAlerts previously and it returned the correct values.  

0
Comment actions Permalink

Please sign in to leave a comment.