For attorney.lightning.force, you should be sure that all objects and pages and classes are added to Site Public Access Settings. On Setup Sites > click the label of your site on the list. Your site page opens, and click the "Public Access Settings" button.Here all permissions should be set. First edit and give…
Salesforce
Answered May 9, 2023
·
2.0K Views
Read answer →
Even though Functions can't be enabled in a Developer Org Salesforce edition, you can Develop Functions using the local development experience, connected to a Dev org without using a licence. You can take a look at the tutorial I published here: Getting Started with Salesforce Functions Locally. No Licence Required!
Salesforce
Answered May 5, 2023
·
791 Views
Read answer →
I tried "yyyy-MM-dd'T'HH:mm:ss.SSSXXX" pattern and I am able to convert Date from "YYYY-MM-DD" to "YYYY-MM-DDThh:mm:ss-hh:mm" format as given below- Date d = System.today(); Datetime myDT = datetime.newInstance(d.year(), d.month(),d.day()); String myDate = myDT.format('yyyy-MM-dd'T'HH:mm:ss.SSSXXX');…
Salesforce
Answered May 5, 2023
·
1.3K Views
Read answer →
You're probably looking for formatGMT: String output = DateTime.now().formatGMT('yyyyMMddHHmmss'); System.debug(output); Note that MM is month, while mm is minute. This will give you the format you're looking for in GMT (GMT-00:00). You can read SimpleDateFormat for all available options.
Salesforce
Answered May 5, 2023
·
1.1K Views
Read answer →
You can add attributes checked to lightning-input from the javascript controller. You can access the lightning checkbox element by some attribute. In this example all checkboxes are accessed by setting the data-id attribute. html file - js controller-import { LightningElement, track, api } from 'lwc'; export default…
Salesforce
Answered May 4, 2023
·
5.1K Views
Read answer →
Below is a list of apex exceptions - AsyncException CalloutException DmlException EmailException ExternalObjectException InvalidParameterValueException LimitException JSONException ListException MathException NoAccessException NoDataFoundException NoSuchElementException NullPointerException QueryException…
Salesforce
Answered May 4, 2023
·
560 Views
Read answer →
In order to correctly output a log of anything force:recordData does, you need to wait for it to resolve fully. Luckily, we have an attribute we can listen to, the recordUpdated attribute. This should work: Component Controller handleRecordChanged: function(component, event, helper) {…
Salesforce
Answered May 4, 2023
·
820 Views
Read answer →
I've done quite a bit of research on the difference between Custom Settings and Custom Metadata Types, and I've found that in only a few cases are Custom Settings more useful. Custom Metadata types have a number of advantages that make them the correct choice to implement almost always. A lot of this has already been…
Salesforce
Answered May 3, 2023
·
1.7K Views
Read answer →
In case of prettier not working vscode - try this "npm install --save-dev --save-exact prettier"
Salesforce
Answered May 2, 2023
·
1.1K Views
Read answer →
SOQL vs SOSL Definition SOQL (Salesforce Object Query Language) Use the Salesforce Object Query Language (SOQL) to construct simple but powerful query strings in the queryString parameter in the query() call, in Apex statements, in Visualforce controllers and getter methods, or in the Schema Explorer of the Force.com…
Salesforce
Answered May 2, 2023
·
1.6K Views
Read answer →
There are few points to consider to enable aura component access fix winter 22 release. This update was first made available in Summer ’21 and is enforced in Winter ’22. This wont affect if you are building a non managed package solution. This is still not enforced automatically. Now in your scratch org or sandboxes…
Salesforce
Answered May 1, 2023
·
615 Views
Read answer →
I suggest you update your onbeforeunload to return null; like so: [removed] = function() { // delete the temporary records. MyController.deleteTemporaryRecords('{!reportId}',handleResult); console.log('deleting temporary records. {!reportId}'); return null; }That said, I would be very wary of this approach. Clients…
Salesforce
Answered May 1, 2023
·
603 Views
Read answer →