Flow designer help

Snowman15
Tera Expert

Hi all,

I need to perform a lookup on the "general case" table to check for "active cases" for each "account" with "status open".

iScreen Shoter - Google Chrome - 250325150104.jpg

 

However, my goal is to actually skip all accounts with an active case and in a new action, update only the accounts that do not have an active case. I attempted to use a lookup records count (checking if it is 0 or greater than 0), but this approach is not working as intended, as it skips all accounts without an active case and only returns the ones with an active case.

Could you please advise on how I can achieve this?

Thank you.

2 REPLIES 2

Vishal Jaswal
Giga Sage

Hello @Snowman15 

The only challenge you will face is if the same account as multiple ongoing cases with state as Open as well as New / Awaiting Info.

If the above is not the scenario, then I would recommend creating a database view

VishalJaswal_0-1742935178814.png
A total of 8 such customer_account records identified:

VishalJaswal_2-1742935235416.png
Use this database view in your flow:

VishalJaswal_7-1742935390902.png

Step#1: Action --> Look up Records

VishalJaswal_3-1742935286140.png

VishalJaswal_6-1742935373762.png

 

Step#2: Flow Logic --> For each and drag the pill 1-Look Up Records - Accounts with open case (records)

VishalJaswal_5-1742935334133.png

 

Step#3: Action: Update Record 

VishalJaswal_8-1742935477068.png

Result:

VishalJaswal_9-1742935539650.png

 

 

 


Hope that helps!

Hi @Vishal Jaswal , Thank you so much for your suggestion, really appreciate it.

For the cases it should only be "active is true" not an open state or any other state. 

Is this going to return only "accounts with general cases active = false" and also " account with no general cases at all" ? As this is what I am trying to achieve.

So for each account in the first look up, lookup the gen case table to check if they have any active general cases(active=true) and return all the accounts with gencases "active=false" plus all the accounts that have no general cases whatsoever. Hopefully that make sense. Thanks