This is my first post on Blockchain and will try to cover briefly terms most commonly used when talking about Blockchain and will build, deploy and query HelloWorld smart contract. So what is Blockchain, is it Crypto currency like Bitcoin or some thing else. Blockchain is technology that is decentralized nodes running peer to peer across the globe that have copy of transactions. Blockchain can be public and private. There are many good resources available that go into detail how Blockchain works. I will not go into workings of Blockchain.… Read more Smart Contract (HelloWorld) →
Lightning Web Components (LWC) Lifecycle Hooks and Using third-party JavaScript libraries Reference:https://developer.salesforce.com/docs/component-library/documentation/en/lwc/create_lifecycle_hooks Sometimes we get uses cases where we need to use third-party JavaScript libraries such as C3 (https://c3js.org/), I will go through the steps needed to configure this below using a use case: Download latest C3 libraries that include .js and .css files Download latest D3 libraries that include .js files. Create static resources for each of these in Salesforce. Create LWC component that uses these to render graphs from C3. LWC provides following lifecycle Hooks constructor() :This method… Read more Lightning Web Components (LWC) Lifecycle Hooks and Using third-party JavaScript libraries →
The Lightning Console JavaScript API and the Salesforce Console Integration Toolkit both interact with Salesforce console apps. We will use these API’s to check status of Omni-Channel Utility bar item. Example Lightning Component is used to check Omni-Channel Utility once agent has accepted the work. lightning:utilityBarAPI: The public API for the Utility Bar. lightning:omniToolkitAPI: This component provides access to the API for the Omni-channel toolkit. lightning:backgroundUtilityItem: This interface is used to indicate that the component is available to be instantiated at the app level without rendering any UI. Salesforce Console Developer Guide Omni-Channel Developer Guide Utility Bar API Omni Channel Work Accepted Background Utility Item Response object that is returned by utilityBarAPI.getAllUtilityInfo(). We can use and modify various attributes of utility bar item using this approach
IoT (Internet of Things). Today we live in the world of connected electronic devices. These devices can be individual devices, machines, sensors etc. All these devices generate lot of data. Companies are constantly looking to use this data and improve customer experience and products. In CRM world companies are constantly using data to improve end customer experience and support process. In our regular day to day we come across may connected devices, from mobile phones to cars. In following example we will use car and see how can we use… Read more Salesforce IOT for better customer experience and product support →
We can use a lightning:datatable component or aura:iteration to display data in tabular format. In this example we will use lightning:datatable component. Note: lightning:datatable components are not supported on mobile devices. For detail features supported please read https://developer.salesforce.com/docs/component-library/bundle/lightning:datatable/documentation At the time of writing of this blog, resizing of columns was not working.https://success.salesforce.com/issues_view?id=a1p3A0000018C5BQAU Tables can be populated during initialization using the data, columns, and keyField attributes. The keyField attribute is required for correct table behavior. It associates each row with a unique identifier. In this example we creates a table whose… Read more Filtered related list using lightning:datatable →
Change Data Capture is a design pattern to determine and records changes to a record and take some action of changed data and keep your external data store current with Salesforce data. Data integration to keep two systems synchronized in one of the following ways Have a data replication process to export data from source system and upload the data to the destination. Usually this type of process is run nightly as volume of data can be large. Changes are not reflected in near real time. Implement Change Data Capture… Read more Salesforce Change Data Capture →
An exception is a error condition or unexpected behavior that is encountered by an executing block of code. Exceptions can be thrown because of a error in executing code or in code that is being called by your code. Exception handling strategy is to gracefully handle error condition. Apex provides try, catch, and finally statements to gracefully recover from exceptions and throw statements to generate exception. If an end user runs into an exception that occurred in apex code, an error message appears on user interface with description of error.… Read more Propagating server side exceptions to Lightning Components. →
In this post we will discuss Event Driven Architecture (EDA) overview and its implementation within Salesforce paradigm. Event Driven Architecture (EDA) is a asynchronous software design pattern where a system A produces certain event notifications and interested consumer systems consume those event notifications, both producers and consumers systems are decoupled. Event processing takes in near real time and there are no point to point integration. Communication revolves around a publisher-subscriber model ,a sender publishes a message that one or more subscribers receivers that message. Much like morning commute time traffic… Read more Event Driven Architecture (EDA) within Salesforce Platform and Slack →