Callout testing has both good news and terrible news. The bad news is that callouts are not supported by Apex test methods, and tests that use callouts fail. The good news is that you can “mock” the callout in Salesforce with the testing runtime. Instead of making a real call to the web service during…
Search Results for:
Salesforce Flows Troubleshooting
At some point in our businesses, we all learn a significant lesson which is that things don’t go as planned. You can always review the instructions and reassemble that piece that doesn’t add up as we thought. The same is also true for Salesforce Flows. Occasionally flows can stop working for one reason or another….
Create Lightning Web Components - 2
In my previous post, we discussed the basics of creating Lightning Web Components (LWCs). Today, we will dive a little deeper and discuss how components are related to HTML and Javascript. HTML & JS An HTML file with the root tag “template” must be present for each UI component. An HTML file is not…
Integration Consuming API in Salesforce - 2
In a previous post, we started discussing integrations and consuming Salesforce data. Today, we will continue that discussion with consuming API in Salesforce integrations and using JSON and Apex callouts. It’s time to employ some Apex callouts to put our newfound HTTP understanding from part 1 to use. To obtain a list of forest creatures,…
Create Lightning Web Components - 1
Today, we will learn the basics to create a Lightning Web Component. Having its own API, a Lightning web component is a reusable custom HTML element. An HTML file, a JavaScript file, and a metadata configuration file must all be present in a Lightning web component that produces user interfaces. To enable auto wiring by…
Share Javascript Code in LWC
In previous posts, we’ve discussed Lightning Web Components and how they relate to Javascript Code. Today, we will discuss sharing Javascript Code in LWCs. Create an ES6 module in a service component and use standard JavaScript syntax to export the variables or functions you want to share to exchange code between components. A JavaScript file…