Creates folder in line items tab in CLIC module.
The name of the folder to be added.
Optionalparams: { parent?: string }An options object containing additional properties for the folder.
Optionalparent?: stringThe ID of the parent folder.
Adds an input to the CLIC header.
The object of the input.
Create line Item in line items tab in CLIC module. Multiple line items with same sku can be created.
Deletes all line items from CLIC object.
Deletes line items from CLIC object. Please note that this method takes an array of line IDs as argument, since SKU is not unique. In order to properly delete line items, use "getLineItems" method and then use "lineId" field that is fetched from it.
Disables inputs at the CLIC header.
CLIC Detail Only - In a list, this method does not make sense, so it is implemented just as an empty method there.
Gets an input by inputName from the CLIC header.
You can use dots to create a path to a nested input. For example if you have the input stringUserEntry1_collapsible_row1
inside row1 input, and it is inside collapsibleSectionWithRow input then the path will look like
collapsibleSectionWithRow.row1.stringUserEntry1_collapsible_row1.
The name of the input. You can use dots to create a path to a nested input. E.g. collapsibleSectionWithRow.row1.stringUserEntry1_collapsible_row1
Returns an input value from the CLIC header.
The name of the input. You can use dots to create a path to a nested input. E.g. collapsibleSectionWithRow.row1.stringUserEntry1_collapsible_row1
Gets an output by outputName from the CLIC header.
The name of the output.
Returns an output result from the CLIC header.
The name of the output.
Retrieves CLIC header type
Gets a value from the CLIC header. Use it to obtain properties such as version, externalRef, calculationStatus, etc.
The name of the property which you want obtain.
Returns an input by name from the first line item fetched by queryData.
Returns a value from the input defined by name from a line item which is the first in the response defined by queryData.
Returns an output by resultName from the first line item fetched by queryData.
Returns a result from the output defined by outputName from a line item which is the first in the response defined by queryData.
Fetches items from CLIC by queryData.
Fetches items as a page from CLIC by queryData and limit.
Move line item to the folder.
of the items which should be moved.
to which line items will be added. export const quotesDetailNew = async ({ quoteAPI }) => { const items = await quoteAPI.addLineItems(["arch", "mint", "ubuntu"]); const folder = await quoteAPI.addFolder('Linux folder'); await quoteAPI.moveLineItems(items, folder); }
Triggers a recalculation at the CLIC object.
By default, it is decided if the recalculation is triggered as async by Async actions threshold,
which is defined in Administration > Configuration >….
You can force the trigger as async by passing true to the forceAsync parameter.
OptionalforceAsync: booleanThe recalculation will we triggered as an async job.
Disables CLIC detail buttons in the header/items tabs. The options are:
Header tab: submit, calculate, startCreationWorkflow, nextStepCreationWorkflow, backStepCreationWorkflow, finishCreationWorkflow, finishCreationWorkflowAndSubmit, withdraw, markOfferAsLost, convertToDeal, reconvertToDeal, revoke, createNewRevision, emailing, emailingAndSignature, createOpportunity, assignOpportunity, assignAccount, duplicate, remove.
Items tab:
Header action buttons: add_items, browse_items, add_recommended_items, addFolder, massEdit, copyAllItemsToClipboard, importItemsToClipboard.
Selection context buttons: deleteItems, duplicateItems, moveItemsToFolder.
CLIC Detail Only - In a list, this method does not make sense, so it is implemented just as an empty method there.
Sets an input value at the CLIC header.
The name of the input. You can use dots to create a path to a nested input. E.g. collapsibleSectionWithRow.row1.stringUserEntry1_collapsible_row1
export const quotesDetailOpen = async ({ quoteAPI }) => {
// Simple inputs
await quoteAPI.setHeaderInputValue('ProjectID', 'Some ID');
await quoteAPI.setHeaderInputValue('ProjectName', 'Project Name');
// Input with configurator
await quoteAPI.setHeaderInputValue('Configurator_Documents', {
InvoiceMethod: 'Invoice method',
OpportunityOwner: 'Name',
OpportunityOwnerEmail: 'Email',
OpportunityOwnerPhone: 'Phone',
OpportunityOwnerTitle: 'Title'
});
}
Sets an output result at the CLIC header.
The name of the output.
The result value of the output.
Updates a field at the CLIC header. Use it to update properties such as expiryDate, externalRef, additionalInfo1, etc
The name of field at the CLIC header.
The value of the field which will be set.
Sets a value of the input with a name which is at the first line item defined by queryData.
Updates multiple line item inputs values at once.
Sets the CLIC object as read-only in UI.
CLIC Detail Only - In a list, this method does not make sense, so it is implemented just as an empty method there.
Updates header values and header input values.
object containing header value names as keys and corresponding values
object containing header input value names as keys and corresponding values
This is API for working with Quotes, Contracts, Rebate Agreements and Compensation Plans. It works with lists and details of these entities.
Name of this API will vary based on the module where you are using it. For quotes it will be:
compensationPlanAPIcontractAPIrebateAgreementAPIquoteAPIIf you use the interceptor methods
quotesDetailCreateNewRevision,quotesDetailCopyand the same alternatives for Contracts, Rebate Agreements and Compensation Plans, you will get this API under the namesquoteOriginAPI,quoteNewRevisionAPIorquoteCopyAPI(similar pattern for others).All these variables contains an object which implement this
ClicInterceptorAPItype.