PF
12/16/2024, 3:45 PMCeligo AI
12/16/2024, 3:45 PMAI generated answer (using internal Slack threads):To set the recurrence units on a billing schedule through the API, you would need to use the
setSublistText
method. This method allows you to set the value of a sublist field as text.
Here is a sample code snippet that demonstrates how to use this method:
javascript
var billingScheduleRec = record.load({
type: record.Type.BILLING_SCHEDULE,
id: billingScheduleId
});
billingScheduleRec.setSublistText({
sublistId: 'recurrence',
fieldId: 'amount',
line: 0,
text: '100%'
});
var billingScheduleId = billingScheduleRec.save();
In this example, the setSublistText
method is used to set the 'amount' field of the 'recurrence' sublist to '100%'. The record.load
method is used to load the billing schedule record, and the record.save
method is used to save the changes.
******
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
12/16/2024, 3:45 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.81599158
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.814740837
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.804236948
Celigo AI
12/16/2024, 3:45 PM