function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PadmajaPadmaja 

Identify first Case on Opportunity

There is a lookup field to opportunity on case.I want to Identify First case created with a specific criteria on Opportunity without updating any opportunity or without writing any automation on Opportunity. I am supposed to write the automation(except trigger) only on Case object.

Can anyone help me with this.
Preeti Agarwal 29Preeti Agarwal 29
Hi Padmaja,

I think you could use After insert Flow here 
1. you would need to trigger the flow on after case insert
2. then query the count of cases on the opportunity(case. Opportunity)
3. then check your criteria on the opportunity 
4. if the criteria matches and count is 1 then you have met your first case.

you could also use it before insert flow with a slight tweak if you need to update the case.

Thanks,
Please mark the answer if it meets your requirement.
 
PadmajaPadmaja
Thankyou Preeti your inputs.