I wanna just set isDynamic to false in other scrip...
# ask-stanley-ai
c
I wanna just set isDynamic to false in other script, can you suggest a good way?
c
AI generated answer (using internal Slack threads):
To set
isDynamic
to false in another script, you can use the
record.load
method with the
isDynamic
option set to false. This will load the record in a non-dynamic mode. Here is a sample code snippet:
Copy code
javascript
var record = record.load({
    type: record.Type.SALES_ORDER, 
    id: '123',
    isDynamic: false
});
This will load the Sales Order record with id '123' in a non-dynamic mode. Please note that when a record is loaded in non-dynamic mode, you cannot use the
record.selectNewLine
,
record.commitLine
,
record.selectLine
,
record.removeLine
,
record.insertLine
,
record.getLineCount
, and
record.getCurrentSublistIndex
methods. ****** 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.771774411
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.767319739
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.767229259
Please provide your feedback on this answer.