Trigger a script from attaching a contact to a cus...
# ask-stanley-ai
p
Trigger a script from attaching a contact to a customer
c
AI generated answer (using internal Slack threads):
****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** To trigger a script when attaching a contact to a customer, you can use a client-side script or a server-side script. However, the trigger point or event that gets triggered when you use the "attach" button in the Relationship tab of a sales order is not explicitly defined. For a server-side script, you can use a UserEvent Script with the
beforeSubmit
event. However, if you don't see a log when you deploy a user event to all records, then you can't use a user event. For a client-side script, you can use the following events and test with a console log: -
sublistChanged
-
validateLine
-
validateInsert
Please note that these are just suggestions and you may need to experiment to find the exact trigger point for your specific use case.
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.852600336
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.84659
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.846034884
Please provide your feedback on this answer.