Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Optimizing Salesforce Industries Solutions on the Vlocity OmniStudio Platform
  • Table Of Contents Toc
  • Feedback & Rating feedback
Optimizing Salesforce Industries Solutions on the Vlocity OmniStudio Platform

Optimizing Salesforce Industries Solutions on the Vlocity OmniStudio Platform

By : Dmitri Khanine
5 (4)
close
close
Optimizing Salesforce Industries Solutions on the Vlocity OmniStudio Platform

Optimizing Salesforce Industries Solutions on the Vlocity OmniStudio Platform

5 (4)
By: Dmitri Khanine

Overview of this book

Salesforce Industries brings out-of-the-box solutions tailored to specific industries, making it easy for customers to install, configure, and slash their time-to-value. It stands as one of Salesforce's strategic pillars with the number of installations growing rapidly. While customizing the out-of-the-box solutions can pose performance challenges, this book provides a fail-safe system with proven best practices, tools, and precise metrics to enhance performance and scalability for efficient outcomes. Kicking off with an overview of the Salesforce Industries Vlocity platform and OmniStudio, you’ll explore the tools and techniques used to manage code and measure performance. Delving into performance optimization, you’ll uncover methods for improving performance in OmniStudio's Service Layer (Integration Procedures and DataRaptors) and Presentation Layer (OmniScripts and FlexCards). Further, the book will guide you through achieving maximum performance by leveraging best practices in both layers. By the end of this book, you’ll have mastered the intricacies of Salesforce Industries on the Vlocity OmniStudio Platform, enhancing your skills to navigate and optimize tailored solutions effectively.
Table of Contents (18 chapters)
close
close
Free Chapter
1
Part 1:The Platform Overview
4
Part 2: Getting to Know the Tools
8
Part 3: Best Practices for Improving Performance

Async execution options in Apex

In this section, we will do a brief review of the options available in the Salesforce platform itself for running code asynchronously. These can come in handy when you need to do a long-running operation inside a Remote Action or when you need to do some work outside of the OmniStudio framework, and in many other cases, thus allowing your business users to continue using the app without having to wait for operations to complete.

Apex @future annotation

The Apex @future annotation is a quick way to run a method asynchronously without delaying an Apex transaction. This is also great for making Web Service callouts, separating DML statements, and preventing mixed save DML errors, just like we did with the Chain On Step Integration Procedure setting earlier in this chapter.

To get an Apex method to run asynchronously, simply add the @future annotation before the method, as shown in the following screenshot:

Figure 6.12 – An overview of the static method with the @future annotation

Figure 6.12...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY