0

I am not sure about Process builder will work for this scenario or not but can anybody please tell me How to Notify the User If OpenActivity related list is blank of the Particular Opportunity (Opportunity.OpenActivities == Null) ? (Related list of OpenActivity is totally blank in Opportunity detail page)

I tried to create Process builder with Using Opportunity object & Task Object but i could not find the way to achieve this (In Task Process builder i used Related To as in my criteria).

I have Professional Edition and i do not have permission to create Apex trigger or Workflow Rule for the same.

  • 1
    What should Trigger notifying the User OpenActivity is blank? – Dan Jones Jan 17 '17 at 11:12
  • it should notify the user that this Opportunity does not have any open Activity so, assign task to it. hope this is clear now !! – HSdev Jan 17 '17 at 11:16
  • I understand that, but you need something to Trigger that check so it can assign tasks, send e-mails etc... Typically this might be a time-based criteria in a Workflow, for example, or a Batch Class scheduled to run every few ours that looks for empty OpenActivity against Opportunity. – Dan Jones Jan 17 '17 at 11:41
  • @DanJones i understand the way you are talking about but i really don't understand what criteria i should write up to check that yes this Opportunity don't have any open Activity – HSdev Jan 17 '17 at 11:44
  • That's something you'll really need to think about then. Finding empty one's isn't particularly difficult as illustrated by @AdrianLarson's answer below, but you need to consider exactly what should Trigger the actions. – Dan Jones Jan 17 '17 at 11:49
0

You could get a rough approximation using the LastActivityDate field. If it is null, you know for sure there are no open activities, because there are none of any variety. If it is in the future, you know there are open activities. If it is in the past, there is some ambiguity, as you can have open tasks which are past due. Still, these criteria might work well enough for your needs:

OR(ISNULL(LastActivityDate), LastActivityDate < TODAY())
  • i tried the above formula and it's working only when i am going to create a opportunity, when i update the existing opportunity with No OpenActivities then process builder is not firing and did not get the expected output...OR(ISNULL(LastActivityDate), LastActivityDate < DATEVALUE(NOW())) – HSdev Jan 17 '17 at 11:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.