Mastering Icon Management in Notion: A Guide for Make.com Users
Have you ever found yourself in a situation where you need to handle different icons in Notion and remove unused keys? Or perhaps you've tried to copy an icon from 'search objects' to a JSON, but found that the collection in the JSON must have items. If you don't set any items, it won't input. This can be a frustrating problem, but don't worry, there's a solution.
Understanding the Problem
First, let's understand the problem a bit more. When you try to 'ignore' a key from the collection in the Create JSON module, it only removes one floor. For example, if you set 'url' to 'ignore', then the 'url' is missing but the 'external' is still there. The goal is to remove the whole 'external'.
The Solution
There's no straight way to remove the key from the collection. However, you can utilize the Create JSON module to recreate a new one based on the data you have on the original collection. This might seem a bit complicated, but it's a workaround that works.
Another approach is to use a Router and 3 different JSON structures. One for type = emoji, one for type = file, and one for the third type. This way, you can easily remove the unnecessary keys from each JSON, and use filters to continue to the appropriate route.
Alternatively, you may try to build your JSON using a 'Text Aggregator', and using if statements to hide or show specific parts of the JSON. This method might be a bit more complex, but it gives you more control over what parts of the JSON to show or hide.
Troubleshooting Tips
If you're still having trouble, remember to check your JSON structures and make sure they're correct. Also, make sure you're using the correct filters in your Router. If all else fails, don't hesitate to ask for help. There's a whole community of users out there who might have encountered the same problem and found a solution.
Conclusion
Handling different icons in Notion and removing unused keys can be a bit tricky, but with the right approach and a bit of patience, it's definitely doable. Whether you choose to use the Create JSON module, a Router with different JSON structures, or a Text Aggregator, the key is to understand the problem and apply the solution that works best for you. Happy coding!
You do have further questions?
Ask your question via E-Mail: Richard@make-app.de
Book a paid Support & Consulting Session
New Make.com user? Sign up through this Affiliate Link to receive 10.000 operations for FREE.