Add email address in Console or Model? #434
Answered
by
ericingram
mcconnon12
asked this question in
Help
-
I was wondering if there was something I could add to the Console or Model on Orders to have the email address pass through? Currently the email does not come through. This would make my life so much easier with connecting to my ESP. |
Beta Was this translation helpful? Give feedback.
Answered by
ericingram
Nov 9, 2023
Replies: 2 comments 15 replies
-
How about expanding the account on request? |
Beta Was this translation helpful? Give feedback.
4 replies
-
Pretty sure it's just a webhook. Is there something I can add to the model in the Developer section to just relay the email in the initial webhook? |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah I see. The webhook response just returns the object by itself (an order) and you would have to make a subsequent request to get more data. We've considered adding a configurable
query
to webhooks that would allow you to include more data in the response and this is an interesting data point.One way to accomplish this would be to create a formula field for the account email on the order model.
However keep in mind that formulas are only executed when an order is created or updated. If the customer changes their email in the meantime, the order would have an old email value unt…