While trying to check an empty map, a!isNullOrEmpty and a!isNotNullOrEmpty are not working, rather giving opposite result.
The result of
a!isNullOrEmpty(a!map())
Discussion posts and replies are publicly visible
I have seen this happen multiple times within process models if we get an empty CDT map as a result and try to use this function to verify if it is empty. So I usually check one of the CDT's not null parameter to determine if the value is actually empty. if you are using a map, better to check either a not null key or all the keys.