Nada Ahmed
10/16/2024, 12:32 PMCeligo AI
10/16/2024, 12:32 PMAI generated answer (using internal Slack threads):To source a value from a custom field on the same transaction, you can use a workflow or a script. The workflow or script would be triggered after field sourcing or on record creation. This would pull the value from the desired field and populate it in the custom field. Here is a sample workflow action script:
javascript
var rec = nlapiGetNewRecord();
var sourceField = rec.getFieldValue('sourceField');
rec.setFieldValue('customField', sourceField);
In this script, 'sourceField' is the field from which you want to source the value, and 'customField' is the custom field where you want to set the value.
Alternatively, you can make your field a Non-Stored formula field. This would allow the field to dynamically calculate and display the value based on the formula you provide, without actually storing the value in the database.
******
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
10/16/2024, 12:32 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.833027
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.832237542
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.816028833
Celigo AI
10/16/2024, 12:32 PM