Skip to content

Add email address in Console or Model? #434

Answered by ericingram
mcconnon12 asked this question in Help
Discussion options

You must be logged in to vote

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.

PUT /:models/orders/fields
{
  "account_email": {
    "type": "string",
    "formula": "account.email"
   }
}

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…

Replies: 2 comments 15 replies

Comment options

You must be logged in to vote
4 replies
@mcconnon12
Comment options

@ericingram
Comment options

@mcconnon12
Comment options

@ericingram
Comment options

Comment options

You must be logged in to vote
11 replies
@ericingram
Comment options

Answer selected by logeshswell
@mcconnon12
Comment options

@ericingram
Comment options

@mcconnon12
Comment options

@ericingram
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment