-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Variables JSON to Mailjet Batch send #2573
Add Variables JSON to Mailjet Batch send #2573
Conversation
Hello, will you find time to review this proposal? |
@marcinkoziej just had a quick look at it. Why a JSON instead of a fixed collection with a key-value pair? Would it not be easier the latter? |
Our use case is that on input we have a flat key-value list of custom fields, and we want to be able to create MJ templates which use these fields. |
Hello @marcinkoziej thank you for this PR, I did made some improvements and as I wasn't able to push them to your fork I did create new PR #2966 |
@marcinkoziej can you provide an example that would not work with the current key-value pair approach? You know that you can provide an expression in the value and make whatever you want, right? for example, |
This workflow is triggered when a new "confirmation request" is generated in the system. This means that a pending operation is created in the system (there are a few types of operation, like: "confirm request to join team by user"). Does it sound more clear? |
@RicardoE105 perhaps I am missing something? I see that I can add values like this: and indeed I can use macro language to set both key and value, but I need to know in advance how many fields are there, for example, and I if i want to send {"category": ["a", "b", "c"]} to Mailjet, I would have to set first key to "category" and the value to |
@marcinkoziej yes, that makes sense. Ideally, every fixedCollection and collection parameter could be transformed to a JSON input out of the box. That way, when encountered with the scenario you described we do not have to extend the node. I Will discuss it internally. I made the following changes to your PR: 1 - Added a top-level parameter Thanks very much for your contribution. We will let you know when it's released. |
Thanks a lot for your contribution @marcinkoziej. Got merged with #2987. Just, fyi. n8n is not OSI-approved open-source. Rather fair-code licensed. You can also read more about it in our blog and FAQ. |
Got released with |
Hey N8N!
Thank you for creating such an AWESOME tool and releasing it under FLOSS license.
We wanted to send emails with Mailjet but pass all the variables instead of adding them by hand in the UI one by one - so we added this new parameter to pass variables JSON, and it will be sent as-is.
Would that be something to add to upstream?