Friday, October 2, 2020

How to write IF ELSE condition under LWC .html file:

Below is the block of code to use If/Else condition under LWC UI (.html file). Condition variable you can defined under .js file.

<!-- If Condition-->
    <template if:true={your_Variable_defined_in_JS}>
        <!-- Put your UI logic here. -->
    </template>
    <!-- Else Condition-->
    <template if:false={your_Variable_defined_in_JS}>
        <!-- Put your UI logic here. -->
    </template>


Salesforce REST API: Upload a Files to a Record Attachments | Step-by-Step Guide

Uploading a file to a Salesforce record using the REST API is a straightforward process. In this tutorial, I'll walk you through the com...