Category Archives: Salesforce.com

Heap Size: Elephant in the room

Heap size is a common, yet neglected problem whenever it comes to Salesforce Apex development. Heap size in actual is the count of memory used by the variables, object instances in an Apex class. In order to store these objects & variables, memory is allocated in Salesforce which is derived from allocated Heap. The Heap size truly depends on the type of transaction, Salesforce provides a heap size limit of 6MB for synchronous transaction and 12 MB for asynchronous transaction. Whenever, too much data is stored during processing an error occurs prompting “Apex heap size too large”. You must have encountered this error at least once if you are a developer.

Here are a few tips to ensure that the heap limit does not exceed the maximum size and your code runs smoothly

Vernica1

Continue reading

Posted in apex develeopment, Salesforce, salesforce development, salesforce integration, Salesforce.com. Tagged with , , .

Evaluate Lightning Web Components In Online Playground

Salesforce has introduced an online editor to try out Lightning Web Components. Lightning Web Components is the new UI development approach that Salesforce has; this is an evolution from the current Aura framework. Salesforce is to allow both Lightning Web Components and Aura frameworks to exist side-by-side.

To not just experiment, but also evaluate design considerations playground can be used. By using the instructions here, new Lightning Web Components can also be created on the interactive code Playground editor.

Dual Listbox is a control that that just shows a bunch of values on the left-side and allows user to choose the values and move them to right-side.

Kabilan1

Can dual listbox handle thousands of values on the left-side? Playground makes it quite easy to change the values of the values loaded.

Continue reading

Posted in Salesforce, Salesforce Lightning, Salesforce.com, UI. Tagged with , , , .

Recurrent Neural Network with Long Short-Term Memory

What is a Neuron?

In Biological term, Neurons is the unit of nervous system which is responsible for flow of message in the form of electrical impulse in Human brain. So, Neuron is responsible for Human intelligence. But, in Today’s scenario it is used in Artificial Intelligence as well. Recurrent Neural Network (RNN) is a class of Artificial neural network in which connections between the neurons form a directed graph, or in simpler words, having a self-loop in the hidden layers. This helps RNNs to utilize the previous state of the hidden neurons to learn current state. Along with the current input, RNNs utilize the information they have learnt previously. Among all the neural networks, they are the only one with an internal memory. A usual RNN has a short-term memory. Because of their internal memory, RNN are able to remember things.

Pawan1

Continue reading

Posted in Application Architecture, Salesforce AI, salesforce development, Salesforce Einstein, Salesforce Einstein, salesforce for healthcare, Salesforce Machine Learning. Tagged with , , , , .

Developing Visualforce Apps using AngularJS

Have you ever wondered how cool it would be to have the flexibility and features Angular JS framework provides, inside a Visualforce page in Salesforce platform? Well, wait no more, keep reading to get a perfect solution for this. This blog will introduce you to AngularJS and how to develop Visualforce apps using angular. Every web application requires client-side JavaScript, HTML, and CSS. Without using any server framework like Rails, Node, PHP, etc. the entire application can be built using just the front-end tools and languages.

What is ANGULARJS?

AngularJS is a powerful JavaScript framework for constructing dynamic web applications. It is used to develop mobile and web applications. The good thing about Angular is that it has a set of primed modules to simplify the building of single page applications. Single page application (SPA) is a web application that dynamically renders the data on the current page without reloading the whole page. All the code (JS, HTML, and CSS) is retrieved with a single page load and navigation between pages is performed without reloading the whole page.

Continue reading

Posted in apex develeopment, Apex Development, force.com app development, salesforce development. Tagged with , , , .

Service Level Agreement (SLA) Management for Cases in Salesforce

NewKabilan

In Salesforce, Entitlements are records which ensures that a certain case is acted upon within the given time limits. If not then a certain action is executed.

An entitlement mainly consists of below information:

  1. Entitlement Process
  2. Business Hours

An Entitlement Process declares the start time for the process and the exit criteria for the records, time interval when the criteria is to evaluated and the actions to be taken for scenarios of success, warning and violation.

This process is supported by the concept of Business Hours. Business hours define the window within which the SLA clock for the cases will run and will stop while current time is out of the window mentioned earlier.

Each entitlement process also contains sub-elements which help in evaluating the exit criteria mentioned in the process against each record that enters the entitlement process. These sub-elements are called Milestones. Milestones have different types based on requirement.

  1. No Recurrence
  2. Sequential
  3. Independent

These evaluate the criteria on a certain interval from the start time of the process. Also three types of events are attached to milestones, namely: success, warning and violation. These events are fired respectively on:

  1. When exit criteria evaluates to true
  2. When exit criteria evaluates to false, but the time interval is about to get over.
  3. When exit criteria evaluates to false and the time interval is already over.

These events can perform actions similar to a workflow except sending outbound messages.

Together these elements contribute to SLA process for an organization.

Posted in Case Management, Service Cloud, Service Level Agreement. Tagged with , , .

Integration with Salesforce Lightning External Services

Nowadays there is an API Integration in almost every org. The main purpose of integration with another service is to avoid reinventing the wheel. However, the development effort that is required to integrate with services is a complex and time-consuming venture. It reduces speed to market, but it also saps developer energy that is better spent in the front end, building the features that will really differentiate their app. With Lightning External Services, Salesforce makes this a lot easier and admin friendly.

With external services you can connect to any service that you want to, invoke methods based on the external source via a flow all with the help of an easy-to-use wizard. Declarative tools are used to import API definitions right into Salesforce. Swagger or Interagent-based API definitions can be used to define an external service. Once the definitions have been imported, you can create lightning flows which will invoke actions generated from the API definition schema. Below is a depiction of how external services works.

KaranP1

Here is what is happening in the above image:

Based on provided API schema specification, a schema definition is created that describes the API. Once this is done, named credential is created to authenticate to the service’s endpoint using the URL provided by the external service provider. The endpoint is URL that exposes the web services resources that External Services needs to interact with. Using the named credential and schema definition, external service is registered. External Services imports the definitions into your org and generates Apex actions, which are available immediately in Lightning Flow. While creating a flow, these Apex actions are added into the flow which sends a callout to the endpoint and output is returned based on schema definition.

Schema Definition for your external service:

Schema specification is basically a contract which contains which type of inputs and outputs can be included in the API calls that are made from your external service. Endpoint information and authentication parameters for REST based API service are also included in specs. On the other hand, schema definition is human readable structured data.

Below is the schema definition of a pet store Swagger API.

Pet Store Schema

This schema declares various methods available in the API and the inputs, outputs included in this service. For example, the below snippet contains information about a GET method which is used to get all the inventories by status.

KaranP2

We will be using the Pet Store Schema to illustrate the whole external service in this blog.

Registering an External Service:

Registering an external service involves the below two steps:

1. Named Credential: In order to register an External service, you need to create a named credential first. Named credential is created to authenticate to the service’s endpoint using the URL provided by the external service provider. Create a Named Credential as below in your org:

  • For Label, use SwaggerPet.
  • For URL, use https://petstore.swagger.io
  • Leave other fields as they are and click Save.

2. External Service: In your org, go to setup and search for external service in the quick find box. Create a new external Service and provide the below information in the fields:

  • For name, give ExternalSrv1
  • For Named credential, select SwaggerPet named credential created in previous step
  • In the Service Schema Relative URL field paste “/v2/swagger.json”

KaranP3

 

KaranP4

The generated actions are used in the flows. Below is the list of actions available in the pet store endpoint. We cover getOrderById action in this blog.

KaranP5

External Services in flow:

Apex actions generated from external services can be used in lightning flows. When users run the flows, during runtime external services sends a callout to the service’s endpoint. Create a new flow and drag the Apex Action element. Select “ExternalSrv1_getOrderById__Service”

This action takes an Order id (any integer between 1 and 10) and returns details for that order like Order quantity, pet id, shipping date. Create variables for input and output data and configure the output variables to be stored in the variables as done below. Provide the default value of id such that 1<=id<=10. Set the input values and the output values by associating each with a flow variable. Make sure that the data type of input/output matches the input/output specs mentioned in the schema definition.

KaranP6

 

KaranP7

Connect the Apex Action with the start element.

KaranP8

After completing all these steps, click on debug. Doing this will start the flow in debug mode. On the next screen select Show details of what’s executed and render flow in Lightning runtime and click Run.

KaranP9

Above is the output of “ExternalSrv1_getOrderById__Service” for order Id = 2. Similarly, other Apex Actions can also be invoked using external services and flow without writing any code.

Summary:

External services are a great tool which along with point-and-click automation tool like flows and process builders can be used to integrate any API with Salesforce without writing any code. It reduces the development effort and is very much admin friendly making the process of integration making this process simpler and thus cheaper.

Posted in Agile, Salesforce, Salesforce Challenges, salesforce development, salesforce integration, Salesforce Lightning, Service Cloud. Tagged with , , , , , , .

Sales Forecasting

PranshuPic1

The term ‘Forecasting’ by far is coined by the words ‘fore’ & ‘casting’, meaning predicting in advance… First Thoughts… are we trying to play GOD… Predicting in advance??

Oh no… That’s not it…

The best we do is act logical and have some stats to back that logic which results in a logical explanation to things.

Business Decision making has been a challenge for executives. No doubt, business decisions making needs analytical experience and that gut feeling, but that too is to be backed by some numbers and statistics. Based on the available data, forecasts simply tell what the future trend is going to be. As a result, executives have something to hold on to while taking significant business-related decisions because ‘numbers never lie’. But getting those numbers is not as easy a task as it sounds. These high-quality forecasts take a lot of time and effort due to which the demand for these forecasts is not usually met by the analytical team.

Companies based on their forecasted figures follow a certain educated guess which rarely hits on target, so as they say, ‘no forecasting model is perfect’ and it is because of the number of assumptions one must take into building a certain model. In sales institutions, the concept of demand and supply is driven by sales forecasting. Based on the historical trends and keeping in mind a ton of other factors like seasonality, cyclicity, periodicity etc., forecasting is done to reflect the best possible marketplace conditions. These factors are incorporated to include randomness and uncertainty giving the forecasting model a life-like scenario. To predict profit, one must know the number of products an organization is going to produce and sell in the next year and the price each of that product would fetch to the company. This prediction depends on the economic scenario of the coming ‘N’ number of months which will eventually decide the customer’s behavior and their buying patterns. All this cannot be known accurately beforehand while creating the forecasting plan. These are some of the assumptions one has to take while creating a forecasting model. That’s why forecasts are inaccurate, but this shouldn’t stop you from using them. Learning even a small amount using these forecasting models can give you an edge over your competition. Forecasts are not the means itself to excel in your business, they are just a benchmark for you to follow and reach a certain level.

As Oscar Wilde correctly said, “A good forecaster is not smarter than everyone else, he merely has his ignorance better organized”. There will always be gaps in these forecasting models as these are just a means for us to simplify a complicated problem. The best we can do is to judiciously use these forecasts for our advantage to back our gut instinct while taking a business decision.

Every organization uses one or the other analytical forecasting tool keeping in mind their key business factors. They plan for the next ‘N’ number of months and work accordingly to achieve and go beyond that plan. People like what is simple and that’s what our team of business consultants, technologists and data scientists did for you, they worked on the same problem statement and came up with DelphiA Sales forecasting and Predictive Analytics application for Salesforce CRM.

PranshuPic2

Delphi intuitively uses collective organizational knowledge to analyze and predict forecasted values of opportunities. The complex algorithms predict when an opportunity in your pipeline will convert into an order and forecast’s the value of your Opportunities, Accounts and Sales Reps.

Delphi works on Machine Learning to produce quality forecasts.

Based on your Organization’s historical data Delphi analyzes the business trend and shows the forecasted output accordingly.

Delphi uses complex Machine Learning algorithms to give you a zero-hassle holistic view of your salesforce org in just a CLICK!! Delphi prioritizes your opportunity by generation opportunity score and recommends Sales Rep assignment for those Opportunities, helping you to allocate your resources and prioritize your work. It also tells when the opportunities are going to be closed and the forecasted amount that they might fetch when they are closed.

 

PranshuPic3

Try DELPHI for free here!!

In all, Delphi is a forecasting tool which ensures that you are not left just only with your gut feeling while taking a crucial business decision. Now you do have a skilled analytical companion with you.

Thanks for reading!!

Posted in Analytics, Forecasting, Monte Carlo Simulation, Prediction, Sales, Salesforce, Salesforce AI, Salesforce Einstein, Salesforce Machine Learning. Tagged with , , , , , , , , .

Artificial Intelligence powered HR Automation in Workplace

Artificial intelligence (AI) has been changing our lives for decades, but today its presence is bigger than ever before. AI has powered HR automation. Human resource processes plays vital role in every company. Whether it’s recruitment, onboarding process, training, learning & development. Artificial Intelligence is entering the HR space, and very soon everything that can be automated, will be automated.

AnuBlogPic

HR automation is the process of enhancing the efficiency of the HR department by freeing employees from tedious manual tasks and allowing them to focus on complex tasks like decision making and strategizing. By automating standard and repetitive HR activities, organizations can reduce the cost and time they spend on manual HR planning and processing. Through HR automation, organizations can design, streamline, integrate, and deploy necessary services swiftly at a considerably lower cost. If implemented right HR Automation tools shows real effectiveness to be more productive, freeing us of our most mundane and time-consuming tasks so that HR can drive more value at work. Few of latest HR automation tools which are AI based:

  • HR Chatbots – HR chatbots are changing the way routine HR processes and functions are done. One such tool that has shown immense potential and is pegged to revolutionise the way businesses interact with customers and employees are chatbots. Chatbots are artificial intelligence programs that conduct conversations. HR Chatbots acts as Help desk.
  • E-recruitment – Another big hit automation tool for hiring process used by HR. The E-Recruitment, also known as Online Recruitment, is the process of hiring the potential candidates for the vacant job positions, using the electronic resources, specially the internet.
  • HR Analytics – Smart automation systems excel at wading through deep pools of data to pull out important insights.
  • E-Learning – Now a days through Artificial Intelligence tools, e-learning has created a big platform not only in business environment but also in education industry.
  • Virtual Onboarding – Onboarding is vital part of any HR processes and for Multinational organization companies are who are hiring hundreds of people across the globe throughout the year, creating an onboarding program that is delivered in a virtual manner is critical. It enables the new hire to access the information WHEN they need it and in a way that is engaging and easy to consume.
  • Gamification – Gamification is the usage of game-thinking and game mechanics in non-game scenarios such as business environment and processes, specifically in recruitment, training & development and motivation; in order to enhance employee engagement.

The Benefits of HR Process Automation

Through HR automation, organizations can design, streamline, integrate, and deploy necessary services swiftly at a considerably lower cost. If implemented right, HR automation can reap indispensable benefits. Here are the benefits of HR automation:

  • Improve productivity due to quick processing and data sharing.
  • Reduce employee turnover due to heightened employee engagement.
  • Slash down storage and printing costs associated with paper-based processing.
  • Stay free from compliance risk or policy violations.
  • Enhance organizational growth through efficient hiring at optimal operational cost.
  • Drop in data entry errors and misplaced/lost documents.
  • Make intelligent business decisions with insightful reports.
  • Collaborate with other stakeholders to hire, train, and retain skilled employees.
  • More time to analyse HR data to make intelligent business decisions.

 

Posted in Agile, AGILE Tools, Artificial Intelligence, Machine Learning, Process Change Management, Salesforce, Salesforce AI, Salesforce Einstein, Salesforce Einstein, Salesforce Machine Learning, Team Collaboration.

Predicting Success of your Salesforce Development Project

Can you really predict the success of your Salesforce Development /Integration project with a high degree of confidence at the beginning of your project?

The answer is No!

But you can rate your people, process and tools that are required for success and use that to predict success with a ‘good enough’ confidence level.

Pillars of Salesforce Development Project

Pillars of Salesforce Development Project success.

Continue reading

Posted in Agile, Apex Development, Salesforce cloud Implementation, salesforce consultant, salesforce customization, salesforce development, Salesforce DevOps, Salesforce Implementation. Tagged with , , , .

The Future For Analytics, Data And What It Can Do For Businesses?

Times are changing; this has been a term in use since the rapid progress of humanity since the 18th century. Today, it can be used even on a daily basis. Technology remains the cornerstone through which humanity evolves, it is now embedded in every single part of our lives today and imagining a future without it would be quite challenging. This is why going forward, there is always going to be a discussion about its impact and how it will change as time comes.

Data is something which humans have been able to collect very efficiently over the past few decades. In recent times, the collection process and speeds have ramped up significantly. This also means that, in the world of analytics, anything and everything will have correlations. Here are some ways data will impact us:

  • Transparency: With more and more amounts of data being made available to the public, it is only a matter of time before we use it for every single task in and around the house. Today the insights provided by these numbers and metrics can only be picked up by data scientists, but the future is not too far away when even the common man would be able to infer from the said data. Its widespread adoption for all spheres of industry and business will become even more rapid as time progresses.
  • Marketing: There will be an increased personalization of marketing. As data flows, it allows companies to select and narrow audiences. With an increase in the sheer numbers and information, it would be a matter of time before marketing strategies will become highly targeted and become personal. This also might seem like an invasion of privacy, and as things go about, there will be solutions which address this issue as it arises.
  • Collaborative Vertical Solutions: As we head into the imagination and digital age, there will be an increase in digital transformation. Collaborative tools will improve through the sheer insight that data can provide. Templates, workflows, and platforms such as Salesforce Service Cloud specifically created for highly regulated industries such as finance and healthcare can contribute well to the success of businesses in a world that is connected.
  • Proactive customer service or reactive: This dynamic change comes as a result of the influx of information through analytics. Things such as connected devices, AI and more; companies and businesses can respond and resolve problems at the origin. This can be done without the consumer even acknowledging the issue. The impact it can have in consumer satisfaction is simply unparalleled.
  • Responsible AI: Ethics and values are all clauses which are under intense scrutiny when it comes to artificial intelligence. There is a question of accountability when it comes to AI creation and usage. There is an onus on the current developers and data scientists to create AI which is responsible. There is forced accountability being put on developers, thus there is an assurance that systems created henceforth will be responsible.

These are just small glimpses into what the future holds for data analytics and AI.

Posted in Artificial Intelligence, Sales Cloud, Salesforce AI, Salesforce cloud Implementation, Salesforce Einstein, Service Cloud.