RSS

API Platform Landscape

Here is an article from Abhinav Asthana regarding The 2022 API Platform Landscape: Trends and Challenges

Here is the API Platform Landscape diagram by POSTMAN

Happy Learning !!

Keep watching this space for more updates.

Have a nice day 🙂

 
Leave a comment

Posted by on June 24, 2022 in Uncategorized

 

Clearing validation errors on clicking clear filters icon – LWC lightning-input

Hi Friends,

Sharing here a piece of code for Clearing validation errors on clicking the clear filters icon on LWC lightning-input.

Generally, the errors don’t get cleared in the first click because the element’s values are still intact even though you are setting start_date and end_date to null. A workaround would be to put a delay and wait for the input values to change and report validity after the function finishes.

handleClear() {
    this.start_date = null;
    this.end_date = null;
    window.setTimeout(() => {
        this.template.querySelectorAll('lightning-input').forEach((element) => { 
            element.reportValidity();
        });
    }, 10)};
}

Happy Coding !!

Keep watching this space for more updates.

Have a nice day 🙂

 
Leave a comment

Posted by on June 19, 2022 in Uncategorized

 

Salesforce – Deleting Debug logs

Hi Friends,

Here are a few ways, we can delete the debug logs

Sol-1: Using SOQL query in the DC editor

SELECT ID from APEXLOG 

Run this query in the Developer Console – Query Editor tab (at the bottom)

Select the tooling API checkbox.

Now Delete all the records.

Sol-2: Using SFDX CLI commands

sfdx force:data:soql:query -t -q "SELECT Id FROM ApexLog" -r "csv" > logs.csv

sfdx force:data:bulk:delete -s ApexLog -f logs.csv

Sol-3: Using Apex debugger chrome extension

Here we can select debug size. for example, select 5000 and delete all the debugs at once.

Apex Debugger

salesforce-tool

Sol-4: Tooling API Deletion Steps:

1. Open the Developer Console

2. Select the Query Editor tab near the bottom of the console page

3. Select the Use Tooling API check box.

4. Execute the query ‘select id from apexlog’

5. Query Results will list available rows to be deleted
6. Use the keys Shift and Arrow Down together to select all rows for deletion

7. Click Delete Row.

Sol-5: Using WORKBENCH

  1. SELECT Id FROM ApexLog
  2. Select view as Bulk CSV
  3. Download the CSV file
  4. Then in the workbench go to
  5. Data tab -> select delete option
  6. select From file check box
  7. upload the CSV file you got from the above mentioned query.
  8. Click on next
  9. Click on map fields (id)
  10. Click the check box:
  11. Process records asynchronously via Bulk API
  12. Verify that the object type is: ApexLog
  13. Click on confirm the delete.

Sol-6: Using JavaScript

Open the browser console and execute the below js script to delete the logs

(function() {
    var request = XMLHttpRequest.prototype.open;
    XMLHttpRequest.prototype.open = function() {
        this.addEventListener('load', function() {
        if(document.querySelector('[id$="thetracetable"] tbody tr')){
             document.querySelectorAll('[id$="deleteAll"]')[0].click();
        }
    });
    request.apply(this, arguments);
};
})();
document.querySelectorAll('[id$="deleteAll"]')[0].click();

Happy Learning !!

Keep watching this space for more updates.

Have a nice day 🙂

 
Leave a comment

Posted by on June 7, 2022 in Uncategorized

 

Free Salesforce Career & Certification Courses

Hi Friends,

Sharing here useful information on Free Salesforce Career & Certification Courses.

Thanks, Christine Marshall for sharing this with us.

Free Salesforce Career & Certification Courses

Happy Learning !!

Keep watching this space for more updates.

Have a nice day 🙂

 
Leave a comment

Posted by on April 30, 2022 in Uncategorized

 

Salesforce CI and CD

Hi Friends,

Here are some useful youtube videos on salesforce ci and cd on how to create a Salesforce CI/CD pipeline from the scratch.

Hope these videos will help to learn how to set up the Jenkins pipeline from scratch in the Salesforce world.

Salesforce CI and CD pipeline

Happy Learning !!

Keep watching this space for more updates.

Have a nice day 🙂

 
Leave a comment

Posted by on April 29, 2022 in Uncategorized

 

Free Salesforce courses on Udemy

Hi Friends,

Here are a few lists of free Salesforce courses on Udemy.

Click the below link to see all courses

List of Free Salesforce courses on Udemy

Happy Learning !!

Keep watching this space for more updates.

Have a nice day 🙂

 
Leave a comment

Posted by on April 29, 2022 in Uncategorized

 

Learning JavaScript

Hi Friends,

Sharing here a few resources for learning javascript.

A Smarter Way to Learn JavaScript

SamsTeachYourself  – All in one (HTML, CSS, and JavaScript)

Javascript for Absolute Beginners

Sams Teach Yourself – Available Books

JavaScript for impatient programmers (ES2022 edition)

Learn Javascript from educba

Happy Learning !!

Keep watching this space for more updates.

Have a nice day 🙂

 
Leave a comment

Posted by on April 25, 2022 in Uncategorized

 

Command Line / Terminal for Beginners 

Hi Friends,

The command line is one of the most useful and efficient tools we have as developers and as computer users in general.

Sharing here a useful article that helps beginners and also experienced developers.

Command Line for Beginners – How to Use the Terminal

Happy Learning !!

Keep watching this space for more updates.

Have a nice day 🙂

 
Leave a comment

Posted by on April 12, 2022 in Uncategorized

 

DevOps

Hello Friends,

Sharing here the useful youtube videos playlist to learn from the basics of DevOps to how your app is deployed using Docker, Kubernetes, Jenkins, GitLab, with an automated CI CD pipeline, monitoring, and more.

Thanks to Thetips4you for sharing the videos list.

Here is the video playlist for those who want to learn the new technologies free of cost.

https://www.youtube.com/c/Thetips4you/playlists

Happy Learning !!

Keep watching this space for more updates.

Have a nice day 🙂

 
Leave a comment

Posted by on April 2, 2022 in Uncategorized

 

Date Format – JavaScript

Use the native .toLocaleDateString() function which supports several useful params like locale (to select a format like MM/DD/YYYY or YYYY/MM/DD), timezone (to convert the date), and formats details options 

const testCases = [
  new Date().toLocaleDateString(), // 8/19/2020
  new Date().toLocaleString(undefined, {year: 'numeric', month: '2-digit', day: '2-digit', weekday:"long", hour: '2-digit', hour12: false, minute:'2-digit', second:'2-digit'}),
  new Date().toLocaleDateString('en-US', {year: 'numeric', month: '2-digit', day: '2-digit'}), // 08/19/2020 (month and day with two digits)
  new Date().toLocaleDateString('en-ZA'), // 2020/08/19 (year/month/day) notice the different locale
  new Date().toLocaleDateString('en-CA'), // 2020-08-19 (year-month-day) notice the different locale
  new Date().toLocaleString("en-US", {timeZone: "America/New_York"}), // 8/19/2020, 9:29:51 AM. (date and time in a specific timezone)
  new Date().toLocaleString("en-US", {hour: '2-digit', hour12: false, timeZone: "America/New_York"}),  // 09 (just the hour)
]

for (const testData of testCases) {
  console.log(testData)
}

For more information refer here

Happy Learning !!

Keep watching this space for more updates.

Have a nice day 🙂

 
Leave a comment

Posted by on March 23, 2022 in Uncategorized