Hello,

I added some relationship types for account entity (prospect, pending
prospect).

Pending prospect means prospect with no opportunities. I want to control
this value on opportunity close event.

I mean when I close opportunity as lost - check if there is some
opportunities left for the account and if no - set relationship type of an
account as pending prospect.

The question is how to check if there are some opportunities open for an
account. I think it should be some simple value, but i cant find any.

Thanks,
Akop Akopyan