in script 2.1, can specify what form a vendor bill...
# ask-stanley-ai
t
in script 2.1, can specify what form a vendor bill should use when i create a bill
c
AI generated answer (using internal Slack threads):
In SuiteScript 2.1, you can specify the form a vendor bill should use when creating a bill. This can be done by setting the
customform
field on the record. Here is an example:
Copy code
javascript
var record = record.create({
    type: record.Type.VENDOR_BILL,
    isDynamic: true
});
record.setValue({
    fieldId: 'customform',
    value: 'custom_form_id' // replace with your custom form id
});
This will create a new vendor bill using the specified custom form. Please replace
'custom_form_id'
with the internal ID of your custom form. ****** 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.833801329
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.829284728
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828735411
Please provide your feedback on this answer.
t
var record in this will cause error at some point. record is already in use for the record module, otherwise ok answer