Solved

To apply filters on Target Database in Rules


Badge
The filters present in the Action Criteria are applied only on the source data but not on the target.



For example,



If Source data have multiple records with Same account number as below -







Now if we try to update this exclude the record with value yes by using it in criteria and 

and apply the identifier on Account then the rule is updating all the records including the Field Exclude which has Yes too.



So user is requesting to post as an enhancement request where the Action criteria is applied on target too.
icon

Best answer by jitin_mehndiratta 17 May 2018, 13:12

View original

5 replies

Badge
This is very important for us, we have multiple rules where we could use this
Hi Prathap,



The use case which you mentioned can be achieved by merging the "Source Data set with Target object" in the Bionic query and then setting up a filter to exclude the records with "exclude = Yes". 



Let me know if that helps.



Regards,

Jitin
Userlevel 7
Badge +1
Hi Prathap, Did the above suggestion solved your issue? Please let us know if you need any help here?
Badge
The source and target are the same data source
Userlevel 5
Badge +3

Hi Jahnavi.

If your Source and Target are the same, you have to do a self-join. Means you have to fetch all the records using one fetch and in another fetch task, fetch the records with a filter(which records you want to exclude in the Update Operation).

Now do a merge task between these two fetches using the common Identifier field. Here you have to do the Left Join and the Left object should be your First fetch.

Reply