Configuration for this SDK.
Singleton instance of this SDK.
Singleton instance of ProductOverride SDK.
Singleton instance of ProductPricing SDK.
Singleton instance of ProductStructure SDK.
Singleton instance of Version SDK.
Singleton instance of Vlocity Attributes SDK.
Singleton instance of object details sdk.
Singleton instance of VlocityObject SDK.
getter method for namespace. Provides the salesforce org namespace
setter method for namespace. Set custom namespace
Creates Attribute Assignments for a given object.
Creates and returns input object for creating VlocityAttachment objects.
Creates and returns an instance of input class for DeleteVlocityAttachmentInput
Returns an instance of GetObjectPicklistisInput class
Creates and returns Input object for getting Product2 object details
Return instance of GetProductAttributeAssignmentsInput
This function creates and returns a default input object that can be used to call the getProductDefinition sdk function.
Creates and returns Input object for getting products
Creates and returns an instance of input class for GetVlocityAttachmentDetailsInput
Creates and returns Input object for getting vlocity attachments
Creates input object for createAttributeAssignments sdk function.
Creates the input object for publishProduct
remote action.
This function returns the default input object which can be used for calling getQuickAddProductProperties sdk function.
Returns the input instance getSearchResults sdk function.
Creates the input object for searchProductByText
remote action.
Returns the instance of the input class when updating all attributes for an object
Returns the instance of the input class when updating all fields for an object
Returns the default input object for calling updateProductAttribute
Creates and returns a default instance of input object for calling updateProductDefinition sdk function.
Creates and returns input object for updating a single field. Input object contains a key value pair for field name and field value.
Creates multiple VlocityAttachment records. Used for linking documents with product.
API Path: (POST) /services/data/v43.0/composite/sobjects
Vlocity Attachment delete
The input is used to delete the attachment record.
Fires an event to listeners.
Name of the event to fire.
Name of the event to fire.
Payload of the event to fire.
Get fields and attributes mapped to the object id. Currently uses remote datasource. So this needs VF Page to work.
Input class for getting fields and attributes assigned to the product
Returns the folderId for a given folder name. FolderId is required when creating documents.
API Path: (GET) /services/data/v43.0/query
This function returns a list of price list.
Input object that contains a query to get the price list.
Gets the list of picklist items for the pricing tab.
The picklist item input with the remoteClass, remoteMethod, and paramsArray function.
Returns Id for Product2 object
Gets the product definition for a given product. Definition contains a list of sections and section elements within each section.
API Path: (GET) /v1/studio/object/{input.productId}/facets/{input.facetName}
input with the product id to fetch the product definition
sectionElements.records
which represent the fields and attributes.Gets an instance of ProductOverride SDK.
an instance of ProductOverride SDK.
Gets an instance of ProductStructure SDK.
an instance of ProductStructure SDK.
Gets an instance of ProductStructure SDK.
an instance of ProductStructure SDK.
Returns a list of products.
This function returns a list of attributes, fields and attribute values that are available for assignment to a given product.
API Path: /v1/studio/object/{input.productid}/facet/{input.facet}/available.
Input object that consists of a productId.
Returns the list of most recently viewed products ordered descending by Last viewed date.
Salesforce document details
The documentId to fetch details.
Gets an instance of Version SDK.
an instance of Version SDK.
Get Vlocity Attachment details
The input is used to get the attachment details.
Returns a list of VlocityAttachment records for a given productId. These records have the url (UrlLong__c) which can be used as a download link.
API Path: (GET) /services/data/v43.0/query
Gets an instance of VlocityAttributes SDK.
an instance of VlocityAttributes SDK.
Gets an instance of VlocityObject SDK.
an instance of VlocityObject SDK.
Executes the remote action for publishing the product. This action would populate the JSONAttributes
field of the product to ensure that the product attributes are visible in CPQ.
Registers a callback for an event
Name of the event to listen for.
Contains callback function.
Calls the remote function to Save Attribute Assignment object.
Simple text search for products using SOSL on NAME FIELDS
Calls the getSearchResultsMap remote action.
Unregisters a callback for an event
Name of the event to unregister from.
Contains callback function.
Executes a remote call to update all attributes of a given object.
Executes remote call to update all fields of an object.
Sends a PUT request to update a single attribute on the product.
API Path: (PUT) /v1/studio/products/{input.productId}/attributes
Posts the updated product definition (sections and sectionElements) to the api endpoint for updating a product.
API Path: (PUT) /v1/studio/object/{input.productId}/facets/{input.facet}
Input class for product that has the product definition.
Posts an update to the standard salesforce REST API for updating a single field on the Product2 Object.
API Path: (PATCH) /services/data/v43.0/sobjects/Product2/{input.productId}
Exepcutes remote call to update the settings for a given product id and attribute id.
Get Vlocity Attachment details
The input is used to update the attachment details.
Uploads files specified in the FormData to SalesForce Documents section. Request body is of type multipart/form-data
API Path: (POST) /services/data/v43.0/composite/sobjects
Returns the version number of SDK.
Returns SDK version number as string
Adds all the enumerable string keyed function properties of a source
object to the sdk prototype.
.extend
should only be used to add new methods and it won't override the existing methods.
Note: If the property already exists, it will be not be added.
Custom functions which are being extended should have proper namespaces to avoid issues during upgrades. When Vlocity releases new changes it won't impact if unique namespaces are used.
Example: myCompanyOrFeatureMethodName
The object of functions
Adds all the enumerable string keyed function properties of a source object to the sdk prototype.
.override
method should only be used to override the existing methods and should only be used in rare cases.
Overriding the existing or default methods may cause unintended consequences and may also impact during upgrades.
Please be cautious while using this
The object of functions
Generated using TypeDoc
Product Console Facade to interact with Vlocity Product Console functionality.
v107