Flow Designer- Subflow - Look Up Record

riyashere26
Tera Contributor

i am trying to get the groups i which the user is tagged as member from the sys_user_grmember table. i have a field in the catalog "bank_id" which will be queried against the user.user_name field in the sys_user_grmember table. i need to put an additonal filter where the group type contains vrm. i have written a lookup records function to get the list. how to delete the records based on an if condition. if the count of the look up record is 0, the task will close without action. if the count of the look up record is greater than 0, then delete all the entries fetched as part of the look up record.

 

please help

1 REPLY 1

Shruti
Mega Sage
Mega Sage

Hi,

Add If condition afer look up group member records action

Check If count is > 0

Add a for each loop to delete each record

Shruti_0-1731315712744.png

Shruti_1-1731315759624.pngShruti_2-1731315787780.png