How to Automatic Activity by dynamic?

I have a activity(A). If A have assignment then not automatic. If A not have assignment then automatic. How to Automatic Activity by dynamic?
Parents Reply Children
No Data