Dreamforce 2022 Recap: Salesforce Genie, Slack Canvas, and more!

This year marked the 20th anniversary of Dreamforce and Salesforce spared no expense making it one of the most highly anticipated tech conferences in the country. This Dreamforce was the first in-person conference that Salesforce has held since the start of the pandemic. More than 40k individuals attended the annual conference in San Franciso and over 150k streamed the event online. During this annual event, Salesforce delivered significant tech innovations and product announcements that will surely mark a new chapter in their history.

As you can see, over the last years, Salesforce has released innovations to the Salesforce ecosystem, and they will continue to.

Dreamforce 22 innovation
Source: Salesforce

Salesforce Genie: Real-Time Data Integration across all Clouds

What is Salesforce Genie?

David Schmaier, Salesforce President and Chief Product Officer described the launch of Genie as “The most significant change to the Salesforce platform in the company’s history.”

Salesforce Genie is a new Customer Data Platform (CDP) that offers the ability to provide highly personalized customer experiences hyper-scaled to every single part of your business in real-time.

Organizations use many applications to run their business resulting in customer data being disconnected which can make customer experiences repetitive. Genie combs data sources across applications, ensuring teams will have every piece of customer information available at any point it’s needed. 

Genie is more than just a data integration layer. Natively built within the Salesforce platform, it combines Einstein AI, machine learning, and the Salesforce flow. It opens up all kinds of automation possibilities by allowing data to flow faster and more freely. 

Source: Salesforce

Salesforce Genie’s Main Characteristics

  1. Connect all your data and historical data sources in real time.
  2. Salesforce Genie democratizes access to real-time data across every cloud. It enables all your teams — across sales, service, marketing, commerce, and more — to adapt their experiences in real-time to whatever is going on in your customer’s world.
  3. With harmonization built-in, Salesforce can resolve all this data into a single view of the people behind it and create a real-time Customer Graph of all your customers or interactions. 
  4. Salesforce Genie stores all this data using a lakehouse architecture. This makes it easier to categorize and classify the unstructured data that businesses rely on; as a result, Salesforce Genie accesses all this data faster and puts it to work for you.

To understand this new platform, look at Salesforce Genie Trailhead.

Source: Salesforce

Slack Innovations

Transform Productivity with Slack Canvas

Slack canvas is a new surface in the digital HQ that will transform how teams can organize and share critical resources. Slack canvas saves time by helping workers find essential information quickly within Slack chats. This new tool will be available next year. 

Ali Rayl, Senior Vice-President of Product Management at Slack, commented: “Canvases enhance the real-time collaboration you have in Slack channels by offering a set place to organize and share information of any kind in ways that make people more productive and efficient.”

Source: Salesforce

Some Slack canvas features:

  • Sharing essential files, such as account plans, executive briefing docs, and team contacts
  • Creating a curated list of relevant channels the team needs to reference to support their account 
  • Implementing common workflows, like reporting a customer issue to an engineer or approving requests
  • Accessing opportunity data from Salesforce Sales Cloud, plus usage and spend data
  • Create a snapshot of all the data teammates need, code-free. 
  • And much more!

New Slack Huddles Feature

Huddles enhance virtual conversations and optimize how the teams collaborate and make decisions without leaving Slack.

Slack Huddles New Capabilities:

  • Lightweight video
  • Multiperson screen sharing, drawing, and cursors
  • Emoji, reactions, and stickers
  • Information shared during a huddle gets automatically saved in the channel or DM 
  • And much more!

Purchase Carbon Credits through New Net Zero Marketplace (Coming Soon!)

Now in the Net Zero Cloud, you can find Net Zero Marketplace, a climate action hub and a trusted site for organizations to purchase carbon credits. You can sign up to be the first to know when it goes live. For now, only organizations based in the US will be able to make carbon credit purchases initially, to soon expand to additional regions.

Source: Salesforce

These were some of the latest Salesforce innovations, take a look at the Dreamforce 2022 Main Keynote to learn more details:

Dreamforce & The Oktana Team

As we mentioned in our Dreamforce guide, the Oktana management team was present at Dreamforce. We chatted with multiple companies about Salesforce technologies, languages, frameworks, and ways we could help them with digital transformation. 

If you couldn’t schedule a meeting with our team, you can email us at [email protected] to get in touch.

The announcements made at Dreamforce 2022 will impact the organizations positively. As a Salesforce Summit Consulting Partner specializing in Service Cloud, Experience Cloud, and development across the Customer 360 Platform, these innovations help us enhance businesses to accelerate their growth.

Salesforce Integration Best Practices

Index

What can we do to avoid a Salesforce integration failure?
THIS is the problem behind this article.

A lot of investment goes into a system integration, such as money, time, planning, and strong expectations. Salesforce has over 2,500 integrations and applications available to make your life (or your customer’s life) easier. So why not take advantage of it in the best way possible?

In this article, you will learn how to manage your integration in the best way possible by handling all major factors and acknowledging the Want to avoid a Salesforce integration failure? We will show you how to manage all factors behind Salesforce Integrations Best Practices.

Basics

First, let’s go back to basics. What is an integration?

A Salesforce integration happens when two or more systems come together through a process that facilitates functions or procedures that were once separate. By doing so, all their data is easier to handle by means of multiple, now connected, processes and systems running hand in hand.

Think about it for a second. It’s quite weird to find a system nowadays that is fully isolated.

Dealing with integrations is an essential part of a Salesforce technologist’s job. Hence, becoming skilled in this process means performing the integration faster, with little to no errors, while recognizing that the systems should stay ​​malleable and accessible to other future integrations.

Did you know?

An essential part of any integration is the famous API, an Application Programming Interface. The API is essential because it works as a software intermediary between the applications to communicate with each other.
Without it, there would be no interaction and integration between the systems.

In order to build a good integration and have it perform to the best of its ability, you need to consider all the factors that affect its proper functioning. There are many, but for this example, we will highlight timing. To put it simply, be certain that your processes run to a suitable clock. Whether you choose a synchronous or asynchronous one, would depend mainly on the integration type.

And to help you remember how they work here is a graphic to keep handy…

Security Comes First

As it should be, security is one of the most important factors when it comes to Salesforce integrations. Plenty of factors affect security, but what matters most is taking care of what may have undue access or even harm your integration pattern, your data, as well as your customer’s data. Security elements that typically manage firewalls, forward proxy, reverse proxy, encryptions, and the WS protocol, prevent your system from being invaded by harmful disruptions in the following ways:

  • Countering attacks
  • Managing your sensitive information
  • Protecting your online identity
  • Handling authentications
  • Throttling

Even with all their help, security measures are still number one in our list of best practices and should be counted as primary for each individual project. Brushing them aside as a routine step should be avoided at any cost. For more information, consult security considerations.

Salesforce Integration Patterns

Salesforce patterns and the requirements behind your project, go hand-in-hand. Therefore, patterns need to be carefully understood to handle them better. Makes sense, right? 

Before going ahead, think about timing, direction, security measures, and anything else that impacts their correct functioning. To learn more about patterns, their type, timing, and patterns to consider, consult the Salesforce Pattern Selection Guide.

Now that you have a better understanding of what patterns are, let’s go over some simple factors and the questions affecting each.

  • Since Salesforce needs to perform processes based on the response it receives, the first factor to consider is keeping track of transactions being followed.
  • Timing, as mentioned previously, is also an important factor. Check if it should be synchronous vs asynchronous. Do the processes need to be in real-time vs near real-time?
  • Ultimately, there are a few other elements to manage, such as integrating declaratively or not, the size of your message, how to protect against unforeseen situations (ex. your external system going down), and all matters related to the Salesforce contract.


The platform being used can also be a factor that alters patterns and integrations. We recommend using MuleSoft. You can design, build, customize, and integrate your APIs faster thanks to its one-in-all platform that also allows testing, grants you pre-build assets, and lets you discover more APIs to expand your reach. There are other resources like Informatica and Jitter that should also work nicely. However, MuleSoft is a formidable contender in terms of data management, customization, and customer experience. You won’t be disappointed.

Common Mistakes

From not handling the scope of your project, to losing sight of all the requirements –  it’s human to miss the beat and lose track of what is really at stake. Keeping track of things can save you time, money, and stress. We know you know this, but it’s never a bad idea to have some useful reminders. 

Here you’ll find some tips to make your life easier and avoid common yet foreseeable mistakes… 

Check your to-do list.

  • Before getting started, be mindful of activating and deactivating the corresponding components. Improper activation may disturb both your implementation and your team’s workflow.
  • Pay attention to workflows, triggers, as well as conflicts and discrepancies with mapping data fields, types, and structures. 
  • Be careful not to duplicate worthless data. Do the dishes! Have everything neat and ready before and after integrating your systems. 
  • Choose the right system architecture. Take your time to select the right system since it is a crucial decision that may cost you more in the long run. 
  • Check if you need to consider any future customizations that will influence key decisions, such as the integration type, pattern, security measures, and others specific to your implementation. 

Don’t lose track of things.

  • This may sound obvious, but having a clear idea of what you’re about to implement will always be the first step to take into account.
  • Be mindful of objectives and priorities that may save you from having to go back and start over from scratch. 
  • We recommend asking for help from a consultant if necessary. Help is never a bad idea.
  • Whoever is responsible for implementing the integration needs to be mindful of every activity, commit, and comma –  in order to avoid serious problems in the long run. 
  • Whenever there is a need to change or customize your work, be sure to keep things in order and your documentation will become a lifesaver. 
  • Keep in mind that Rome wasn’t built in a day. Your integration will go through phases that can be thwarted by early avoidable mistakes.

Summary

After understanding the importance of what an integration really is, and the role of the API behind it, we know that security comes first. The security elements that typically manage tools like firewalls and proxies have a crucial role to play and shouldn’t be left aside. 

Choosing the right pattern, architecture, and platform is also important. They all influence each other. Any integration is different in itself and should be respected as such. 

Finally, remember that checking your to-do list and keeping track of things will save you lots of headaches down the road. Try to maintain everything as neat and sorted as you can, from activating and deactivating components, to managing documentation and your integration’s lifecycle.

At Oktana, we’re both Salesforce and MuleSoft partners, skilled at Salesforce integrations, including Heroku and Slack. With certifications across a wide range of Salesforce products, in addition to products like Informatica and MuleSoft, we can connect any app or system to the Salesforce ecosystem.

If you’re in need of a consultant to help expand your current resources and augment your team, don’t hesitate to contact us. Our team of Salesforce experts is here to help support your project.

Further resources

Integrate all your teams with Salesforce Customer 360 Platform

What is the Customer 360 Platform? 

Salesforce Customer 360 is the core Salesforce Platform that connects your marketing, sales, commerce, service, and IT teams with a single view of your customer data, helping you grow relationships with your customers and your employees. It includes a full range of Salesforce products that help your company keep everything connected in one system.

INTEGRATE ALL YOUR TEAMS WITH A SINGLE VIEW PLATFORM

Discover what you can do with the Customer 360 Platform

Salesforce Customer 360 Platform is built to work with countless applications to provide a seamless customer experience that allows you to run your organization smoothly. 

One of the ways you can integrate the Customer 360 Platform with other programs is by using Salesforce Appexchange, a marketplace for apps that can be installed easily into your Salesforce org. Integration can also be done with MuleSoft Anypoint Platform, you can connect any system, application, data, and device to unleash the full power of Customer 360.

Customer 360 has a solution for every phase of your customer’s journey. The more teams you unite, the more you know, and the better you grow.

So, what are the teams you can unite under this scalable CRM platform? Sales Cloud, Service Cloud, Marketing Cloud, Experience Cloud, Slack, and Commerce Cloud just to name a few. 

Customer 360 gives everyone in your company the ability to access crucial data and make smarter, faster decisions.

Discover what you can do with the Customer 360 Platform

We have helped our customers take full advantage of Customer 360 Platform, integrating it with over 30 different technologies. Here are some of the success stories:

 

External API developer community

Our customer, a large installer of interior finishes for US homebuilders, needed help to grow their external API developer community to promote integrations with builders, suppliers, and vendor partners.

In order to create a new community to support the growth of API for buyers and prepare the way for future APIs, we used MuleSoft Anypoint API Community Manager. Our team worked closely with the customer to create a developer portal that showcases the API with technical and business documentation, and a mocking service to allow developers to try the API on the site. 

Through the Experience Cloud, we were able to customize the community theme to ensure it remains consistent with the overall brand. Using Salesforce CMS cards throughout, we could simplify management of the site’s content and provide a space to showcase APIs in development (i.e. “Coming soon”).  

Results

  • Launched the developer portal and gave access to builders which reduced their onboarding time by 80%

Streamlines Data Management with Salesforce

Our customer, a Professional services company specializing in Salesforce digital transformations, identified an opportunity to create an abstraction layer on Salesforce to simplify and streamline data entry and management for their clients.

Our client partnered with us to build a new application using Visualforce, React, ts-force, and TypeScript to give their clients a better interface to manage events, opportunities, leads, and comments. This new Salesforce application provides a simplified user interface, unifying management for all 4 object types on one page (translated in both English and Japanese). 

Results

  • The key partners and customers will start using the product as soon as the MVP of the product launches. 
  • Companies who use Salesforce to create meeting minutes, action items, input their sales activities and customer details, saved more than 50% of their time.

If you are interested in reading more about our success stories, we recommend you check out Oktana’s Success Stories. 

Oktana achieved ‘Expert’ status for the Customer 360 Platform specialization

 

In 2022 Oktana achieved ‘Expert’ status for the Customer 360 Platform specialization in the Salesforce Partner Navigator program, the highest level for the category. 

As a software development company that helps customers innovate, 100% of our Salesforce projects use at least one of the Customer 360 specializations. Most of these projects require implementation of other Salesforce clouds that we have vast expertise, such as Experience Cloud, Service Cloud, and MuleSoft. 

The Customer 360 Salesforce Specialization requires demonstrated and validated expertise in eight Salesforce Customer 360 areas. Through our customer projects, established demonstrated knowledge and expertise in AppBuilder, Heroku, Integration Services, JavaScript Designer, Mobile, Platform, Process Automation and Security & Privacy.

Did you know we are also Salesforce Summit Partners? Check out how we achieved Summit (previously known as Platinum).

Oktana Salesforce Summit Partner

Oktana was recently recognized for reaching Salesforce Summit Partner status (previously known as Platinum) and for achieving “Expert” status recognition for Salesforce Customer 360 Platform and Experience Cloud in the Salesforce Partner Navigator program.

Oktana Salesforce Summit Partner

The Salesforce Navigator program allows partners to differentiate themselves and showcase their expertise. Navigator combines three aspects of a partner’s implementation and services experience into a measure of expertise that is Salesforce-validated and verified. (You can see our current recognition in the Oktana AppExchange listing.)

The evaluation criteria rates the partner’s product and industry expertise based on these measurements:

  • Knowledge: Salesforce certifications 
  • Experience: Completed projects
  • Quality: Customer satisfaction score 

Navigator has three possible levels of expertise: 

  • Level I demonstrates knowledge and capacity to produce customer success consistently.
  • Level II showcases that the partner has the project delivery capacity while maintaining high standards of customer success
  • Expert is the highest level of experience proven leaders in the area of domain. 

About Oktana

We have vast experience working with the Salesforce Platform and related technologies. Since 2014, we have partnered with more than 250 companies of all sizes and industries, and we have achieved more than 450 Salesforce Certifications (and numerous non-Salesforce certifications!). 

Our team is distributed across Bolivia, Colombia, Ecuador, Paraguay, Peru, Uruguay, West Virginia and across the US, with developers, testers, designers, project managers, business analysts, and architects. From day one, we provide training and certification opportunities that enable our team to build expertise across the Salesforce ecosystem and a range of languages, frameworks, and platforms.

We have completed more than 700 projects using Salesforce technologies, allowing Salesforce to recognize our expertise through their Navigator program.

Our current Salesforce expertise

Customer 360 Platform – Expert: Customer 360 connects marketing, sales, commerce, service, and IT teams with a single view of your customer data, helping you grow relationships with your customers and your employees.

Experience Cloud – Expert: Salesforce Experience Cloud, formerly known as Community Cloud, helps companies quickly build connected digital experiences for their customers, partners, and employees at scale.

Einstein – Level II: The first comprehensive AI for CRM. An integrated set of AI technologies makes Salesforce Customer 360 smarter and brings AI to companies everywhere.

Service Cloud – Level II: Service Cloud allows your companies to deliver service to every customer, anytime, anywhere. It is a part of Salesforce’s Customer Success Platform, an ecosystem of connected mobile and social tools powered by the cloud.

PDO/Appexchange – Level II: We have in-depth knowledge in building commercial applications for the AppExchange, we can help you design the product and work in isolated key areas of your application. Currently, we have built one app and 12 components on the AppExchange

 

Industry Products – Level I: Salesforce industry clouds provide out-of-the-box industry-relevant innovation to speed up implementation and customer success, and create a unified experience that deepens relationships across lines of business.

Nonprofit Cloud – Level I: Nonprofit Cloud is an end-to-end platform designed for fundraising organizations, educational institutions, and other nonprofit entities to expand their reach digitally, deepen their connections, and streamline their internal management by keeping track of the people they work with.

Sales Cloud – Level I: Sales Cloud is a fully customizable product that brings all your customer information together in an integrated platform that incorporates marketing, lead generation, sales, customer service, and business analytics.

What does this mean for you?

We can confidently say that we are Salesforce experts recognized for guiding our customers towards success. 

As a Salesforce Summit Partner and certified experts for Customer 360 Platform and Experience Cloud, we provide digital strategies, technical architects, and Salesforce solutions that will help your company innovate and grow. 

We can guide you in finding the right solutions for your business. Check out our latest project updates, where we have built customized solutions for our clients:

More about our Salesforce Integration and Custom Development services.

Salesforce TDD (Test-Driven Development)

Hi, I’m Diego and I have several years (I prefer not to say how many, but let’s say “enough”) working in Salesforce. I am also an Agile enthusiast and lover of applying related techniques throughout my work.

I’ve found test-driven development (TDD) can be a great technique for building robust software, but when we work in Salesforce, I find some constraints or restrictions can make it frustrating. In this post, I’m going to show when and how I use TDD while coding in Salesforce.

Disclaimer: The following is written on the basis of what has worked for me in the past. This is not intended to be a formal or exhaustive description. Use it as you see fit, I do not take any responsibility if you screw it up! 🙂

Salesforce TDD (Test-Driven Development)

Let’s start at the beginning:

What is TDD?

TDD is an Agile development technique that requires you to write a failing unit test before writing any “production code.”

How are you supposed to do TDD?

First I’ll describe how TDD is done in general (this is the way to go in languages like Java).

  1. Write a unit test and make it fail (a compilation error is considered a failing test). Write no more lines of code than needed.
  2. Write the least possible production code lines to make the test pass (fixing a compilation error is considered a pass test).
  3. Refactor the code.
  4. Repeat until you are done.

Let’s check out an example in Java so you see how it works. In this example, we wanna create an advanced calculator of integers.

 

We work in split view when doing TDD

Round 1

Let’s write a failing unit test:

Oops, MyCalculator is not defined yet, compilation issue…therefore, it is a failing test.

Let’s make the test pass:

Compilation problem fixed! The test is passing again. Woohoo!

No tons of code to refactor. 

Round 2

Let’s continue with that test to make it fail again.

Mmm…getOpposite is not defined, ergo compilation issue, ergo failing test.

Let’s fix that. Let’s write the minimum code to fix the test:

getOpposite is defined and returns 0 to any parameter (in particular, 0). Test is passing again!!!

Let’s refactor.

We still don’t have much code to refactor, but there are some name changes we could use to make code easier to read ( yup, yup, yup…unit test code is code, too).

Much better now! 😀

Round 3

Let’s add a new minimum test to fail.

Right now, getOpposite returns 0 to any parameter… it’s a fail!

Let’s write the minimum code required to make the test pass.

Yay! It’s green again! Let’s continue.

Round 4

Let’s add a new failing test.

Last test fail (we are return 0 to any value different than 1), so now we need to write the minimum code to fix this test:

Test is passing again… but this solution is not good, let’s refactor.

Tests are still passing and we solve all the cases! We are done! Well, not actually, we still need to document, test more, write more tests and write even more tests…but we’re on the right path.

I expect this silly example gives you a feel for what TDD is and how it is done.

Now, let’s continue with the discussion, focused on Salesforce.

TDD Advantages

  • Code coverage: We get great code coverage without even thinking about it.
  • Testability: The code is designed to be testable by default (we are actually testing every time we change something).
  • Easier to refactor: We should not change or refactor code without having a set of tests we can lean on. As we are constantly writing tests that we know are able to catch bugs (we make it fail at the beginning), we know that we have a set we can rely on.
  • “Better” code: We are constantly refactoring the code, striving for the best possible code.
  • Predictability: After we finish a “round,” we are completely sure the code is working as we designed it to work and we know we didn’t break anything. We can say we have “working software.”
  • Prevents useless work in Salesforce: In Salesforce, aside from Apex, we have plenty of options to make changes like triggers, workflow rules, process builder, etc. Imagine that after we write a test that changes a value on a contact record, it passes. We could discover that there is another moving part that is taking care of that change (or we wrote the test badly).
  • Documentation: Tests are a great tool to communicate with other developers (or the future you) how, for example, a class API should be called and the expected results of each case.

TDD Disadvantages

  • Overtrust: It happens to me that, as we are testing continuously and we are getting test green, I sometimes have a feeling that the code is working perfectly…but it doesn’t mean it is. We may miss, or simply get lazy, and leave a case out of the unit test.
  • Slow in Salesforce: TDD is designed based on the theory that compiling or writing a test is really fast (a jUnit unit test has to run in less than 1ms). In Salesforce, we need several seconds to compile (the code is compiled on the server) and several more seconds to run the test. In my opinion, this is usually 10+ seconds. As we are compiling and running tests constantly, we add several minutes of “waiting for Salesforce.” However, this can be mitigated if you think you will need to write/compile/execute tests later anyway – you might as well do it upfront.

 

 

Me when I realize the QA found a case I had not considered when I was doing TDD

I will (probably) use TDD when...

In general, I’ve found that TDD is a great tool in several circumstances and I tend to do it almost always in the below cases.

  • Back-end bug fixes: Doing TDD in this context has two big advantages. First, you make sure you are able to reproduce the bug consistently. Second, and even more important, as you are writing a test specific to the bug, you know you will never introduce that bug again.
  • Back-end work with clear requirements and a clear implementation strategy: In this context, writing tests is going to be easy and implementing the production code will be easy, too, as you know where you are heading when you create the test cases.
  • Back-end work with clear requirements and minor implementation unknowns: In this context, the test is easy to write and the production code may be getting clearer as you move into cases.
  • Back-end work with some requirements discovery: Imagine in our calculator example you write a test to divide by zero and you realize you’ve never discussed that case with the BA. TDD helps you discover opportunities to clarify requirements.

I might do TDD, but it’s unlikely...

  • As part of requirements discovery: You could write unit tests as part of requirements discovery, and discuss it with your stakeholders, BA, or other technical people, but you probably have better techniques to support this process.
  • Front-end work: I’m gonna discuss this briefly later, when we talk about Lightning web components.

I will never do TDD when

  • I’m doing a prototype: By definition, a prototype or PoC should be discarded after we show it, so I code it as fast as I can, focused on demonstrating the core functionality.
  • I’m experimenting: If I’m trying a new idea, I don’t focus on code quality (again, this is a prototype).
  • I’m evaluating implementation options: There are some cases where you want to compare two implementation options, so focus on having a good-enough-to-decide prototype and throw it away after you decide…then do the stuff well.
  • I don’t care about code quality: I know code quality is not usually negotiable, but in very limited and extreme situations, it may not be the top priority. For example, when everything is screwed up on prod and you need to fix the problem ASAP because the company is losing millions of dollars per minute. In this very extreme circumstance, fix the problem as fast as you can, make your company earn money again, go to sleep (or maybe get a drink) and tomorrow at 10 am (yup, after a stressful night, start working a little later the next day) make the code beautiful with TDD. Make a test that reproduces the bug and then fix and refactor the code properly.

 

 

Me again, but on one of THOSE nights.

  • When creating test code is extremely difficult (but not possible): In Salesforce there are a few elements that are very hard to test, like working with CMT. In this scenario, I’d probably split the problem into two parts – one that is TDD-doable using mocking data (@TestVisible is your best friend here) and a second, smaller part that I’d consider how to test later (if I even consider it).

How I do TDD in Salesforce

I really don’t do TDD as I defined at the beginning of this article when I’m working in Salesforce. Why? Mainly because of the slower compile/test flow, but also because in Apex we generally start writing integration tests instead of unit tests. Instead of “regular” TDD, I tweaked the formula a bit to work better under Salesforce circumstances.

  1. Write an entire deployable test that checks the flow or use case. Yup, I said deployable, so if I called a method I haven’t created yet, I will create it, empty, so I can deploy.
  2. Run it and get a failure.
  3. Write the minimum code that makes that test pass.
  4. Refactor.
  5. Continue with the next flow or use case.
  6. When I’m done with all the flows and use cases, I refactor the code again (splitting methods, checking code cleanliness, documentation). I run the unit test continuously, every few changes to check if everything continues to work as expected.

To make everything clear, let’s view an <could-be-real-world> example.

Requirement:
As a user, I want the values stored in any object copied into a number of specified contact fields. The specified “mappings” will be stored in a CustomMetadataType called Contact_Mappings__cmt. The Contact_Mappings_cmt has two fields:

  • Original_Fields__c Text
  • Mapped_Fields__c Text

Round 1

As I said before, I should start writing an Apex test that tests a business case. The first thing I’m thinking of developing is “The contact should not change if there is no mapping defined.” I have to write a deployable test that is going to fail with the minimum amount of code to make it fail:

We work in split view

As expected, the code deploys but the test fails. So, we need to fix it! We can simply return the same object.

Now It passes, but we don’t have a lot of code to refactor (we could extract some constants in the test).

This is a much better test.

Test still passes!

Round 2

Okay, let’s add another case. What if we check that the User.LastName is copied into the contact when I define the Mapping Lastname => Lastname? Great idea, let’s do it!

I start to write the unit test but…. I realize I can’t do an Insert in a CMT. Or, I give seeAllData permission to the test and define it in the project metadata. Or, I have to somehow deploy it. 

Remember that I said that I don’t do TDD when writing the test is extremely hard? Well, it looks like I’m in one of those situations. At this moment, I can quit writing this blog post and go cry…or I can redefine what I am developing with TDD, leaving all the complexities outside of scope. I imagine you would be very annoyed after reading this far to see me just quit, so let’s go with the second option.

I can’t use the CMT right now, so let’s do something different. What if we use a Map<String, String> where the key is the field in the original object and the value is the list of fields names in the Contact Object. It might work, later on we just need to read the CMT and create a Map with that information, but spoiler alert…that won’t be covered in this article.

But okay, great, let’s create a map and write the deployable failing test.

And as it was expected… it fails.

Let’s write the “minimum” code that makes that test pass

Our new test passes, but the other one failed! Let’s fix that.

Let’s do some refactoring, either in test or production code.

I think the put/get part is messy to read (and has its own meaning), so let’s split it into its own method.

Also, as we want that theMap could be injected into test case scenarios, the @TestVisible annotation is useful here.

Round 3

Now we should add a new test that executes a new flow and see it fail. I think you got the idea, so I won’t do it now, but just to specify the cases, I can think:

  • Mapping a field to multiple fields (separated by colon)
  • Does nothing if origin field is wrong
  • Does nothing if destination field is wrong
  • Does nothing if types are not compatible
    …and so on

Can we do TDD in Lightning web components (or front-end)

The short answer is yes, we can.

Long answer: As the Jest test can’t see the objects, but they see only the “generated DOM”, it may be harder to do TDD in an efficient way for front-end solutions. Usually, it is better to test visual code by watching the result and THEN write the tests we need to ensure code won’t break in the future.

Conclusion

TDD is a best practice that’s good to master so that you can decide the best moment to apply it (I don’t believe there is One Ring to rule them all, One Ring to find them, One Ring to bring them all, and in the darkness bind them, thank you J.R.R. Tolkien). Applied correctly it will make you produce better, more robust code…and fewer bugs, which means…

Homer is happy

Developing Salesforce Lightning Web Components

In mid-2020 we started a project to build small Salesforce components that could be added to any application or even a registration page. That project has grown to include twelve components currently in production and many more on the way. We publish the components on the AppExchange for free so any Salesforce administrator can install them into their org to try them out. Our team builds components that are utilities that can help us on a daily basis, or complement our other work in some way.

Developing Salesforce Lightning Web Components

Lightning Web Components

There are a few approaches we could take to build components like these, but we wanted to take advantage of the newer Lightning web component architecture. It uses JavaScript, HTML, CSS, and the Lightning Design System. When we need to access custom and standard object definitions or build and call REST APIs, we use the Salesforce Apex programming language.

Lightning web components are a powerful tool because they present data to the client in a dynamic and reactive way. Most components are designed to directly support the Salesforce users who will be interacting with them. This approach allows our team to build for desktop and mobile with very few differences in the code structure. And the Lightning Design System is crucial for designing and developing a UI that is consistent with the rest of the Salesforce experience and is easy for the end-user to understand.

Even though all the components are “components”, some of them could be classified as “sub-components”, meaning that one could be nested and work inside another. This allows the team to distribute tasks better and work more efficiently. It also allows the components to be scalable and to add more features to a single component. It also has the advantage of making the work neater: the code is more organized as each component has its own functionality. 

 

Customer-centered Logic

When creating a component that runs in a complex environment like Salesforce, we want to be sure to minimize the number of interactions with the server. Customer-centered logic helps us reduce response time and to create elements that interact with the client faster. This approach lets the server delegate many of its responsibilities to the browser. Since it acts as a controller, all the user’s logic is handled by the browser.

Developing in this way requires a disposable cache that stores data locally, reducing the response time. The approach is called a “View-Controller-Controller-Model” because it has both a server-side and a client-side controller. Other frameworks such as Visualforce do not interact as quickly with the customer because they continuously consult the backend and request information and/or approvals. They depend 100% on the server. The server has to handle all the user’s requests and analyze what the user needs, then access the database, answer the question, and then render the page for the user. Not very efficient.

 

Component Ideas

The process of building a Lightning Web Component starts with a brainstorming session. Once all the ideas have been discussed, the team does a reality-check and chooses the most Lightning web component-friendly options. Then a team is designated to research available APIs on the market and determine which libraries they need. It’s only at that stage that we determine if it is feasible to develop that new component. If it is, a designer then creates a sketch with the layout, titles, logo, and color palette, and the development team starts building the components and Apex classes. 

We currently have three Lightning web components published on the AppExchange, including Oktana Calendar and Oktana Youtube, with more components already in the security review process. It takes time for the Salesforce security team to complete their review and approve any app or component, and that review process has become even more rigorous recently. We’re excited to share with you our new components as they’re approved and published on the AppExchange. Keep an eye on this blog or check our Salesforce AppExchange listings page.

 

The Best JavaScript Certification for 2021: Salesforce JavaScript Developer I

 

The Salesforce JavaScript Developer I certification, introduced in 2020, is an excellent way to demonstrate experience developing with one of the most popular web programming languages. JavaScript developers work with front-end and back-end development and even related technologies like Salesforce’s Lightning web components. This credential is a great way to further your development career.

Salesforce Javascript certification

Tips and secrets to obtain the Salesforce JavaScript Developer I Certification 

The JavaScript Developer I certification includes a multiple-choice exam that validates core JavaScript development skills. A huge benefit of the Lightning web component programming model is that developers write standard JavaScript. Passing the JavaScript Developer I exam demonstrates that you have the standard JavaScript fundamentals required to develop Lightning web components.

To learn more about this certification, we spoke with two developers from our team in Paraguay: Laura S. and David N.  They both decided to complete the certification to refresh their knowledge in Javascript and to demonstrate their abilities.  They both work closely with Lightning web components and wanted to expand their knowledge of JavaScript to help with that work.

The certification consists of two parts: the Lightning Web Components Specialist Superbadge and the JavaScript Developer I multiple-choice exam. These two parts can be accomplished in any sequence. Laura and David found that it can take approximately four weeks to finish the trail mix and study for the certification. But it all depends on the hours of study you dedicate to it.

The exam is structured around 7 main topics

Laura and David agreed that the most difficult topics are variables, types, and collections. Specifically about the types of data that Javascript handles since each one has its own methods. And, among the easiest topics to understand is asynchronous programming.  In the exam, they give you scenarios and ask you to apply asynchronous programming concepts like using event loop and event monitor or determining loop outcomes.

David considers understanding Javascript testing functions one of the more interesting topics. Other programming languages required additional libraries to do unit tests, while Javascript has built-in test functions. Laura considers server JavaScript (Node.js) more interesting. There are many languages that can be used for developing on the server-side, but she prefers JavaScript.

Oktana’s training team was very helpful to Laura and David. The team guided them from the beginning through to obtaining the certification. They gave them access to platforms like Focus on Force and Udemy, where they could practice until they felt ready to take the exam.

 

Why do we recommend this certification?

There are many reasons to want a certification like this. For some, it’s a way to advance their career. For others, it’s an opportunity to structure and strengthen their knowledge of the language.  

In David’s case, he works front-end and handles web components, so having a deeper understanding of JavaScript helps a lot. Also, it helps you as a tool in some types of projects. For example, in the projects that you carry out for Salesforce, in which you have to modify some component, that work is 100% Javascript. Additionally, it helps to learn new elements that you were not exposed to before, and that are not very commonly taught in the certificates. There is always more than one way to solve problems, the certification helps you to discover new functions and approaches that can make your work easier. Finally, Javascript runs better in browsers, so it is the most logical thing to learn. It is very useful!

Laura and David highly recommend this certification and they believe all developers should obtain it. It’s also a great way to learn more about Salesforce.

 

Certification preparation resources 

 

What are you waiting for? Start preparing for this certification. Also, if you are interested in other Salesforce certifications, our team strongly suggests following the Salesforce Platform Developer I.

 

QA testing methods for better products

Agile processes inspire a more collaborative environment for the design and release of digital products. This methodology, particularly popular among tech and innovative entrepreneurial companies, brings a new high-speed workflow that companies must be able to meet. In this context, QA testing methods are more important because of their ability to increase efficiency and improve work processes within the tech industry. 

QA testing

Having consistent QA testing procedures will increase your customers’ satisfaction, which will be reflected in long-term commercial relationships. QA has a direct impact on revenues, so it’s important that leaders include QA engineers in the entire process of digital product development. A strong QA team provides a wide range of tests that make sure digital products work, and saves companies a lot of money and working hours. Let’s go over some of the QA methods our team applies.  

 

Smoke testing

Smoke testing is very helpful to review whether the most crucial features involved in an app or software are working properly. It’s a primarily scripted testing method that provides a quick big picture view of your digital product. Smoke testing aims to ensure overall functionality.  It’s a useful starting point to get the bigger picture of the digital product and proceed with other more specific methods. It’s also a source of data to decide if it’s time to continue to production or conduct other tests.  As part of our QA strategy, we perform smoke testing all the time with Tok, our Chatter messaging app. This is particularly helpful to ensure our new versions are 100% ready to be released in AppExchange. 

 

Regression testing

Regression testing requires tests to be performed for every single area of functionality for the app or software after a change has been made. When bugs are found and the team does their best to fix them, the programming code changes. Each time the code is changed, it may impact other functionality that wasn’t supposed to be affected and may result in new bugs that need to be fixed. Regression testing helps us trace any unexpected impact from alterations. We helped Zola, a wedding registry, planning, and retail company, to test their web and native mobile apps. Regression testing provided great results and new learnings for both of us. 

 

Sanity Testing

Sanity testing is not performed to verify the core functionality (such as regression testing), but to double-check the rationality (sanity) of the digital products. It focuses on one or two (or a few) sections of the software. If any of them doesn’t retrieve the expected result; then the build should not continue with more rigorous procedures that may demand an extra investment of time and money.  This method is characterized as being narrow, deep, and normally unscripted. 

 

Exploratory Testing

This method encourages the QA team to “explore” the application and play around with it to identify and report any possible bugs. Test cases are not required in advance. Actually, experimented teams use it to gain time before the Requirement Documents are not available yet. We are not talking about a lack of procedures; we are talking about the possibility of discovering, learning, and executing tests simultaneously. That’s why exploratory testing is widely used in agile environments. We highly recommend this method in your testing strategy because it uncovers issues that another functional testing wouldn’t be able to, it puts an emphasis on the UX, and trains your team to become more intuitive and creative.

 

Other tests: 

Besides the three methods listed above, others may be included in the test plan according to the QA engineering criteria and, of course, the nature of the digital product. Here are some of them: 

  • Unit testing, the core of QA testing: This procedure aims to isolate functional pieces of code and test them separately. This way, the QA engineer makes sure every single part of a system works properly. This first scan provides predictability for the QA team to test at a higher level. 

  • Integration testing: When programmers write code, it interacts within a more complex system and those interactions must be tested with the same strictness. So, after unit testing has been successfully conducted, isolated functional pieces of codes are tested together. 

  • Stress-testing: Facing the unexpected is a part of life and it’s necessary to embrace it. Even though a digital product was thought to meet some criteria, it’s very likely that during its life cycle, exceptional situations will be presented. The QA engineer pushes the software to its maximum potential to discover bugs or points of improvement that are hard to identify in regular scenarios.  

  • End-to-end testing: In this type of test, the entire application or digital product is tested from a user perspective. It aims to analyze all possible ways a user can interact with the digital product and then, identify and register every point of improvement. The user is the center of this testing method, so the data reported can be particularly useful for the UX strategy.

 

Our commitment to QA testing

Because we have helped a lot of customers build and boost their digital products around Salesforce, we understand the importance of QA testing. Having a strong QA process not only means meeting our customers’ expectations but also implies money and time savings for our company. Tok, our Chatter messaging app, and other Lightning web components remind us every day that QA testing is a procedure that never ends, but is worth all the time and energy we put into it.

 

Top Salesforce Developer Certifications for 2021

Salesforce is one of the most powerful business technologies on the market, which makes Salesforce certifications a great way to gain expertise and enhance your career as a developer. At Oktana we are committed to the professional growth of everyone on our team. That’s why we have a specialized training team that guides and prepares our entire squad to tackle new challenges and to help them build expertise across the Salesforce ecosystem and across a range of languages, frameworks, and platforms. 

TOP SALESFORCE DEVELOPER CERTIFICATIONS

During recent months we have published many articles about Salesforce certifications.  They are compiled here to help you figure out which option is the best to boost your career:

 

1. Salesforce Certified Administrator

Overview: 

  • Exam Duration: 105 minutes
  • Questions: 60 multiple-choice questions + 5 non-scored 


The Salesforce administrator certification helps you better understand Salesforce CRM fundamentals and demonstrates your expertise and abilities in the platform. You should be able to maintain a Salesforce org,  support common business requirements and inquiries, and last but not least, execute Salesforce administrative tasks. 
Not sure what Salesforce admins do? Start with this Trailhead module: Salesforce Admin: Quick Look. (10 min)

 

2. Salesforce Certified Platform Developer I

Overview: 

  • Exam Duration: 110 minutes  
  • Questions: Content: 60 multiple-choice questions + 5 non-scored 


Salesforce Certified Platform Developer I is probably one of the most important and complete certifications that Salesforce offers. Additionally, it is a prerequisite for many other certifications such as the Salesforce Certified Platform Developer II and it is the first step to becoming a system architect. It is an excellent way to demonstrate to your peers and customers that you have the required skills to complete a successful development project.

 

3. Salesforce Certified Platform Developer II

Overview: 

  • Exam Duration: 120 minutes  
  • Questions: Content: 60 multiple-choice questions 


The Salesforce Platform Developer II certification exam may seem daunting at first, but with some studying and determination, you’ll have that certification under your belt in no time.

It’s important to mention that to achieve this certification you must have already obtained the Salesforce Platform Developer I certification. During your preparation for this certification, you will learn how to leverage the advanced programmatic capabilities of the Salesforce platform and data modeling to include more complex business logic and UIs in applications.

 

4. Salesforce Nonprofit Cloud Consultant

Overview: 

  • Exam Duration: 90 minutes  
  • Questions: Content: 60 multiple-choice questions 


This certification enables you to design and implement solutions that are maintainable, scalable, and meet nonprofit business requirements. During your preparation for this certification, you will build a solid understanding of data management and database concepts, understanding of internet technologies and cloud computing, and more. If you are interested in earning this certification, you must first become a Salesforce Certified Administrator.

 

5. Salesforce JavaScript Developer I

Overview: 

  • Exam Duration: 105 minutes  
  • Questions: Content: 60 multiple-choice questions 


The Salesforce JavaScript Developer I certification, introduced in 2020, is an excellent way to demonstrate experience developing with one of the most popular web programming languages. JavaScript developers work with front-end and back-end development and even related technologies like Salesforce’s Lightning web components. This credential is a great way to further your development career.

 

6. MuleSoft Certified Developer – Level 1 (Mule 4)

Overview: 

  • Exam Duration: 120 minutes 
  • Questions: Content: 60 multiple-choice questions 


MuleSoft streamlines the process of integrating various systems, like new APIs, Salesforce, ERP, or legacy applications. It is a unique technology that makes it easier to integrate systems and manage the entire lifecycle of your APIs, including building, testing, deploying, and managing.

Even though there are no prerequisites for this certification, our team recommends having background knowledge of REST API services, the basics of web concepts, HTTP requests, and knowing how these work from a server perspective.

 

7. Tableau Desktop Specialist Certification

 

Overview: 

  • Exam Duration: 1 hour 
  • Questions: 30 multiple-choice questions 


Tableau is a visual platform that transforms the way we use data to solve problems. It empowers people and organizations to make the most out of their data. In 2019, Tableau was acquired by Salesforce, but its mission remains the same: to help people see and understand their data. 

Our team highly recommends this certification. Companies like Amazon, Experian, and Unilever trust Tableau business intelligence (BI) and analytics software to explore, visualize and securely share data in the form of workbooks and dashboards. Tableau is very user-friendly with drag-and-drop functionality. Tableau Desktop Specialist allows you to quickly clean, analyze, and visualize your data.

8. Informatica Specialist 

 

Overview: 

  • Duration: 90 minutes 
  • Questions: 70 multiple-choice questions 


Okay, it’s not an official Salesforce certification, it’s more like a complementary certification. Informatica enables you to migrate data from different data sources and transform the data according to business requirements.

Informatica certification is in heavy demand by enterprise companies that have large databases they would like to connect to Salesforce. If you work with Salesforce, this certification will expand on the methods you know to integrate Salesforce plus enable you to provide additional value to your internal teams or clients. 

Interested in working on Salesforce projects? We are now hiring! Check out our open positions on our careers page.