A collection of code examples for composing IBM Salesforce Connector Lightning Web Components. Each recipe demonstrate how to compose a wrapper component using IBM Salesforce Connector Lightning Web Component and setting the custom properties of the FileNet Document Class.
-
Set up your environment. Follow the steps below:
- Install Salesforce CLI
- Install Visual Studio Code
- Install the Visual Studio Code Salesforce extensions, including the Lightning Web Components extension
- Install Salesforce Connector v5.8.0 on your Salesforce Org
- Create following FileNet Document Classes in the Object Store. Reconfigure the Object Store to include these classes.
-
MyAccount
- Properties
- Description (String)
- AccountNumber (String)
- AnnualRevenue (Float)
- Rating (String) Choice List (Hot, Warm, Cold)
- IsNew (Boolean)
- DueDate (DateTime)
- Properties
-
MyContract
- Properties
- ContractNumber (String)
- Description (String)
- ContractTerm (Integer)
- Properties
-
RealEstateProperty
- Properties
- Address (String)
- Type (String)
- Bathrooms (Float)
- Bedrooms (Integer)
- Garage (Integer)
- Price (Float)
- Sqft (Integer)
- Properties
-
-
Clone this repository:
git clone https://github.com/ibm-ecm/ibm-ecm-connector-salesforce-lwc-recipes cd ibm-ecm-connector-salesforce-lwc-recipes
-
Now you need to authorize your Salesforce Org:
sf org login web
-
Set the default username for the target Org:
sf config set target-org=<your_salesforce_username>
-
Push the app to your Salesforce org:
sf project deploy start
-
To open the Salesforce org:
sf org open
-
Allow access for a subset of Salesforce Organization users
- In the Setup menu, go to Administration > Users, and select Permission Sets.
- Click IBM Salesforce Connector Recipes User permission set.
- On the Permission set screen, click Manage Assignments.
- Select the user or users that you want to add to the permission set (or unselect users who you would like to remove from the permission set), and click Assign.
- Click Save to save your changes.