You are here:
Datasource Lightning Web Component ReadMe (Managed Package)
For the managed package runtime, this page contains a Datasource LWC ReadMe for each Vlocity release.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
Vlocity Insurance and Health Winter '20 and Vlocity CME Spring '20
The Datasource Lightning Web Component fetches data from Salesforce using different data source types by providing relevant input data.
Available c-datasource Attributes
Attribute |
Value |
Type |
Required |
Description |
|---|---|---|---|---|
value |
JSON |
string |
yes |
Full JSON dump including type and value for the datasource component to use. |
channel |
string |
To use with pubsub, set this feature to register an event listener. By default, the Datasource Lightning Web Component fires |
||
debug |
true, false (Default: false) |
boolean |
To enable debug mode, set to true. Prints fetched data inside template and updates JSON for testing. |
|
theme |
slds, nds (Default: slds) |
string |
Specifies which theme to use. |
Example c-datasource Component
Using the channel name you can listen to result and error event inside the LWC where datasource is used as below
<c-datasource
theme=""
channel="testChannel"
value='{ "type": "query", "value": {"query": "Select Name from Account Limit 1"}}'
debug="true"
></c-datasource>pubsub.register("testChannel", {
result: this.onResult.bind(this),
error : this.onError.bind(this)
});The following Vlocity Lightning Web Components extend the Datasource Lightning Web Component with additional features for fetching data from specific data sources:
-
DatasourceQuery Lightning Web Component
-
DatasourceSearch Lightning Web Component
-
DatasourceApexRemote Lightning Web Component
-
DatasourceApexRest Lightning Web Component
-
DatasourceDataraptor Lightning Web Component
-
DatasourceIntegrationProcedure Lightning Web Component
-
DatasourceRest Lightning Web Component
-
DatasourceSdkComponent Lightning Web Component
Vlocity Insurance and Health Summer '19 and Vlocity CME Fall '19
The Datasource Lightning Web Component fetches data from Salesforce using different data source types by providing relevant input data.
Available c-datasource Attributes
Attribute |
Value |
Type |
Required |
Description |
|---|---|---|---|---|
value |
JSON |
string |
yes |
Full JSON dump including type and value for the datasource component to use. |
channel |
string |
To use with pubsub, set this feature to register an event listener. By default, the Datasource Lightning Web Componentfires |
||
debug |
true, false (Default: false) |
boolean |
To enable debug mode, set to true. Prints fetched data inside template and updates JSON for testing. |
|
theme |
slds, nds (Default: slds) |
string |
Specifies which theme to use. |
Example c-datasource Component
Using the channel name you can listen to result and error event inside the LWC where datasource is used as below
<c-datasource
theme=""
channel="testChannel"
value='{ "type": "query", "value": {"query": "Select Name from Account Limit 1"}}'
debug="true"
></c-datasource>pubsub.register("testChannel", {
result: this.onResult.bind(this),
error : this.onError.bind(this)
});The following Vlocity Lightning Web Components extend the Datasource Lightning Web Component with additional features for fetching data from specific data sources:
-
DatasourceQuery Lightning Web Component
-
DatasourceSearch Lightning Web Component
-
DatasourceApexRemote Lightning Web Component
-
DatasourceDataraptor Lightning Web Component
-
DatasourceIntegrationProcedure Lightning Web Component
-
DatasourceRest Lightning Web Component
