Hi everyone,
I'm having trouble getting `entity\countRelated` to work with a field filter, even though the equivalent `record\count` works perfectly fine.
This works:
totalInboundCalls = record\count('Call', 'direction=', 'Inbound');
This does NOT work:
totalInboundCalls = entity\countRelated('cCall', 'direction=', 'Inbound');
Both are trying to count Call records where direction = 'Inbound'. The only differences are:
- `entity\countRelated` uses the relationship link name ('cCall') instead of the entity type ('Call')
- I trying to nt use any Report filter just plain Formula
Any guidance would be greatly appreciated. Thanks!
I'm having trouble getting `entity\countRelated` to work with a field filter, even though the equivalent `record\count` works perfectly fine.
This works:
totalInboundCalls = record\count('Call', 'direction=', 'Inbound');
This does NOT work:
totalInboundCalls = entity\countRelated('cCall', 'direction=', 'Inbound');
Both are trying to count Call records where direction = 'Inbound'. The only differences are:
- `entity\countRelated` uses the relationship link name ('cCall') instead of the entity type ('Call')
- I trying to nt use any Report filter just plain Formula
Any guidance would be greatly appreciated. Thanks!

Comment