Sarim Khan
06/19/2025, 9:18 AMCeligo AI
06/19/2025, 9:19 AMAI generated answer (using internal Slack threads):Based on the provided Slack threads, it seems that you can indeed modify fields in a UserEvent SuiteScript using the beforeSubmit event. However, there are a few things to consider: 1. The field you're trying to modify should not be set to 'view only'. If it is, your changes will not be saved. 2. The field you're trying to modify should be a stored value. If it's not, your changes might not persist. 3. Be aware of any native behaviors that might overwrite your changes. For example, in the third thread, the user noticed that the 'createpo' field was being changed upon approval of the Sales Order, even though their script did not modify this field. This suggests that there might be some native behavior associated with the 'createpo' field that is overwriting their changes. As for adding a promotion line with a custom Purchase Price, it's not explicitly discussed in the threads. However, given that you can modify fields in a beforeSubmit event, it seems plausible that you could add a promotion line and set a custom Purchase Price. You would need to ensure that the 'Purchase Price' field is not set to 'view only' and is a stored value. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Celigo AI
06/19/2025, 9:19 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.849709034
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.839753568
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.836651266
Celigo AI
06/19/2025, 9:19 AM