sendgrid-nodejs icon indicating copy to clipboard operation
sendgrid-nodejs copied to clipboard

Issue: what is "customArgs"? Does it correspond to "unique_args" in the API?

Open jameshfisher opened this issue 3 years ago • 2 comments

I want to set unique arguments using this library. However, I can't see any way to do that. I can see a field called customArgs, but it's unclear whether this is the same thing. Can you point me to documentation on field?

jameshfisher avatar Sep 05 '22 11:09 jameshfisher

I found through testing that setting customArgs: { foo: "bar"} results in the Email Activity dashboard showing an email with "Unique Args: foo: bar".

So it appears to just be badly named. I suggest that the customArgs field in this library is renamed to uniqueArgs, to correspond with the dashboard and the documentation.

jameshfisher avatar Sep 05 '22 13:09 jameshfisher

(That said, "unique args" is a bizarre name, and should be called "tags" or "private metadata". But the most important thing is consistency - just call it one thing!)

jameshfisher avatar Sep 05 '22 13:09 jameshfisher