Access value at path that may not exist

Answered

Hi everyone

I have a Query All Records function that is grouping records by a value (user.role) and then counting the number of records in each group. The output is shown below. I want to access the number of records for a particular role in a subsequent function. There is a chance that the role that I want to access the count for ('worker') may not exist though. How do I access the number shown with the arrow if it exists?

Thanks.

3 replies