When an Estimate is creating a Sales Order via a t...
# ask-stanley-ai
a
When an Estimate is creating a Sales Order via a transform operation, is the event === context.UserEventType.TRANSFORM for the Estimate, the Sales Order, or neither?
c
AI generated answer (using internal Slack threads):
When an Estimate is creating a Sales Order via a transform operation, the event
context.UserEventType.TRANSFORM
is not triggered for either the Estimate or the Sales Order. Instead, the
context.type
logs as
edit
. However, you can determine if a Sales Order is being transformed from an Estimate by checking the
createdfrom
field. If this field is not empty, it indicates that the Sales Order is being created from another transaction, in this case, an Estimate. You can check this in the
pageInit
function of a client script and store a flag as a global variable. Also, the URL parameters during the transformation operation can provide an indication that the Sales Order is being transformed from an Estimate. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.871093869
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.848388731
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.831970274
Please provide your feedback on this answer.
a
Actually it keeps showing up as a "create" event type.