Aaron R
09/27/2024, 12:17 AMCeligo AI
09/27/2024, 12:18 AMAI generated answer (using internal Slack threads):To find the Scripted Record type when sourcing to get a script id for the record type 'advintercompanyjournalentry', you should use the
Scripted Record Type instead of the standard Record Type.
The Scripted Record Type will return the script id of the record type, which you can then use in your code. This is different from the standard Record Type which returns the internal ID of the record type.
Here is a sample code snippet that was shared in the conversations:
javascript
var customRecordSearch= search.create({
type: "customrecordtype",
filters: ['isinactive', 'is', false],
columns: ['scriptid', 'name']
});
var res= customRecordSearch.run();
var results = res.getRange({
start: 0,
end: 10
});
This code creates a search on the customrecordtype and returns the scriptid and name of each record type that is not inactive. The results are then stored in the results variable.
******
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
09/27/2024, 12:18 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.831545115
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.819460392
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.816552103
Celigo AI
09/27/2024, 12:18 AM