Nick W.
02/14/2025, 2:16 PMCeligo AI
02/14/2025, 2:16 PMAI generated answer (using internal Slack threads):To populate a custom entity field with results of a transaction saved search result, you can follow these steps: 1. Create a free-form text custom field that will be populated with the summarized saved search. This field will hold the internal id of the list/record. 2. Create a second custom field with the 'Store Value' option enabled and set the type to 'List/Record'. 3. Create a workflow to set the field value. This workflow will copy the value from the free-form text custom field (which holds the saved search result) to the List/Record custom field. Here is a sample of how you can set the field value in a workflow:
javascript
var workflow = nlapiCreateRecord('workflow');
workflow.setFieldValue('name', 'Set Field Value');
workflow.setFieldValue('recordtype', 'customrecord_my_custom_record');
var state = workflow.createSubrecord('workflowstates');
state.setFieldValue('statedefinition', 'start');
var action = state.createSubrecord('workflowactions');
action.setFieldValue('actiontype', 'setfieldvalue');
action.setFieldValue('field', 'custrecord_my_custom_field');
action.setFieldValue('value', 'custrecord_my_free_form_text_field');
var workflowId = nlapiSubmitRecord(workflow);
Please note that this is a simplified example and you may need to adjust it according to your specific needs.
******
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
02/14/2025, 2:17 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.846697688
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.817899048
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.807244718
Celigo AI
02/14/2025, 2:17 PM