Expand my Community achievements bar.

SOLVED

How to load a file and delete all the records not presented in the file but present in the schema?

Avatar

Level 6

So, I need to:

1.- Load a file.
2.- Insert the new records and update the ones that are present in the schema byut maybe have one or more fields updated.
3.- Delete all the records not presente in the file, but already inserted in the schema (those were inserted in previous executions of the workflow).

Should it be done in the same workflow?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @god_prophet ,

You can use the below logic to solve it,ParthaSarathy_0-1747798400800.png

Fetch all records from Query and exclude the records from data loading activity. In exclusion activity set primary set as 'Query' . And now Delete the result records with Update data activity. (Test the above in lower environment)

ParthaSarathy_1-1747798558844.png

 

This is just an logic idea to solve the case, you can modify the workflow as per your requirement .

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @god_prophet ,

You can use the below logic to solve it,ParthaSarathy_0-1747798400800.png

Fetch all records from Query and exclude the records from data loading activity. In exclusion activity set primary set as 'Query' . And now Delete the result records with Update data activity. (Test the above in lower environment)

ParthaSarathy_1-1747798558844.png

 

This is just an logic idea to solve the case, you can modify the workflow as per your requirement .