Slaesforce FAQ

how to see salesforce warnings

by Vince Collins Published 2 years ago Updated 2 years ago
image

Do I need Visualforce to display a warning message?

The requirement is to display a warning message on the top of a record. The message should only display if the record contains certain information. In the days of old, and by the I mean Classic, Visualforce was usually required to make a nice banner that sat on the page and could be dynamic.

Is there a way to show Toast in Salesforce flow?

Combined with the new (Spring '20) "before save" trigger in flow, we can pop up warning/success/error messages with "show toast" - a free flow add-in from unofficialsf.com (a handy website run by Salesforce folks with little workarounds and tricks mostly centered around flow).

How do I set up rich text in Salesforce Lightning?

On the relevant Lightning Record page, add the Rich Text component 2. On the right-hand side fill in the Rich Text Editor with the message you want to display 3. Underneath the message section, you can set up the component filter. For example, I am setting it up to display based on Case Reason.

Do I need Visualforce to make a banner in Lightning?

In the days of old, and by the I mean Classic, Visualforce was usually required to make a nice banner that sat on the page and could be dynamic. Today, in Lightning, code is no longer needed to complete such a task, as you can do it entirely with components and filters.

image

How do I show warnings in Salesforce?

How to display alert on Salesforce Standard/Custom object Page Layouts?Click Edit next to the page layout and add visualforce. Click on visualforce settings change width & height to “0”. ... Save page layout. ... You can change popup message on visualforce page based on your requirement.

How do I show warning messages in Salesforce flow?

3:1423:08How to show toast message in Salesforce flow - YouTubeYouTubeStart of suggested clipEnd of suggested clipSo just go ahead click on plus. And then again screen here we will say that notification screen andMoreSo just go ahead click on plus. And then again screen here we will say that notification screen and basically there are four types of notification in salesforce.

How do you show messages in lightning component?

This way, you can display messages via toast or notice using the lightning component....Create Lightning ComponentAlso, in order to create and display notice, we need to use “ component. find('notifyId'). ... Similarly, to create and display toast, we need to use “ component. find('notifyId'). ... Kindly refer to the below code.

How do I show error messages in LWC?

error—A red box with an error icon....Now we can add this LWC component on the home page.Go to Home page.Click Setup (Gear Icon) and select Edit Page.Under Custom Components, find your toastNotificationExampleLWC component and drag it on right-hand side top.Click Save and activate.

How do I show PopUp messages in Salesforce?

On a Salesforce record page, click and select ​Edit Page​. Alternatively, open the page that you want to add the PopUp component to in Community Builder. Drag and drop the ​PopUp​component to the page.

What is empApi?

The lightning/empApi module provides access to methods for subscribing to a streaming channel and listening to event messages. All streaming channels are supported, including channels for platform events, PushTopic events, generic events, and Change Data Capture events.

What is notification in Salesforce?

Notifications let your users know when certain events occur in Salesforce. For example, notifications let users know when they receive approval requests or when someone mentions them in Chatter. You can enable or disable notifications on the Salesforce App Notifications page in Setup.

How do I show toast in Salesforce?

The background color and icon used by a toast is controlled by the type attribute. For example, setting it to success displays the toast notification with a green background and checkmark icon. This toast displays for 5000ms, with a close button in the top right corner when the mode attribute is dismissible .

What is UI message viewer?

The Message UI framework provides specialized view controllers for presenting standard composition interfaces for email and SMS (Short Messaging Service) text messages. Use these interfaces to add message delivery capabilities, without requiring the user to leave your app.

What is refreshApex in LWC?

If the cache is stale, the component needs fresh data. To query the server for updated data and refresh the cache, import and call the refreshApex() function. Invoke refreshApex() only when necessary because it incurs a network trip to query the server. The refreshApex() function returns a Promise.

What is show toast event?

Display toasts to provide feedback to a user following an action, such as after a record is created. You can style a toast to provide information, an error, a success, or a warning.

How do you use lightning messages?

Use the Lightning message service functions to communicate over a Lightning message channel. In a component's Javascript file, import any exports that you need from the lightning/messageService module. Import a message channel using the scoped module @salesforce/messageChannel .

Debug Logs in Salesforce

Debug logs in Salesforce are the best source of information to uncover what is actually taking place on the platform. These are the best option to track back events that might have happened in the Org. Specifically, if we are doing root cause analysis for a particular problem, we can trace out the root cause from the debug logs.

Use cases of debug logs

Debug logs can be used by the developers for tracing any errors that might have occurred on the application. For example, the application is not stable or it is impacting the performance of the other components, or it might stop responding after a certain user input because exceptions are not defined.

Limitations of the Debug Log

Debug logs are undoubtedly helpful for monitoring the platform, but it has certain limitations as well.

Setting Up the debug logging

Debug logging can be activated for Apex classes & triggers and normal users. For this, trace flags need to be configured along with the debug levels, in the Developer Console. Each trace flag will contain the following:

Debug Log Details

Analyzing the debug log is an art, and might need prior experience as a developer or administrator. However, if you are aware of the components of the debug logs, at least you will be aware, where to look for what. The components of the debug log are mentioned below:

image
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9