Forum Discussion
Aleksandar_A
3 years agoContributor III
Hello @Rahul,
You can compare the two list by first merging them using the Join Snap. Then, using the following expression in a Mapper Snap to compare the lists:
$api_list.length == $snowflake_list.length ? ($api_list.filter(x => $snowflake_list.indexOf(x) != -1).length == $api_list.length) : false
Here is a sample pipeline:
–sl-comm-compare-lists_2023_07_08.slp (6.6 KB)
Let me know if this is of any help. 🙂
Regards,
Aleksandar.
Imran
2 years agoNew Contributor
Aleksandar_A - Can you please share the sample pipeline as I am getting Page not found error
- Aleksandar_A2 years agoContributor III
- Imran2 years agoNew Contributor
Thank you Aleksandar_A
Also, Is there a way to easily show what key values do not match between two JSON objects?