That Salesforce Guy
That Salesforce Guy
  • Видео 11
  • Просмотров 40 908
Why You Should Use Salesforce Code Analyzer | Salesforce Best Practices
In this video tutorial, I am going to show you how to use Salesforce Code Analyzer to ensure your code adheres to best practices, helping you identify problems earlier while you develop.
This powerful tool helps you to enforce coding standards, and ensure your code is optimized as per Salesforce Standards using PMD, CPD, ESLint, RetireJS etc.
You can generate a detailed static code analysis report using this tool. As pre-requisite you need SFDX CLI and Java Installed.
⏲️Timestamps
00:00 Intro
00:30 SF Best Practices
02:25 Apex Recipes
03:30 Salesforce Code Analyzer
04:28 How to Install
06:10 How to Scan
08:45 Java JDK
09:24 Execute Scan Command
10:00 Output HTML file
11:38 Apex PMD
13:40 CI CD Pipelin...
Просмотров: 1 164

Видео

Format Apex Code in VS Code using Prettier | Salesforce VS Code Tutorial
Просмотров 1,9 тыс.5 месяцев назад
In this tutorial, we'll walk you through the steps to beautify, format your Apex Code in Visual Studio Code, while doing Salesforce Apex Development, there is no default formatter in VS Code for Apex language other than Developer Console. Prettier is one of the best code formatters and offers Apex Plugin which you can use to format your Apex Class / Code. You can also format LWC using Prettier ...
Run Salesforce Apex Test Class in VS Code | Apex Test Coverage in VS Code
Просмотров 8 тыс.Год назад
Learn why Salesforce developers should use Visual Studio Code (VS Code) to run Apex test classes and methods. In this video, I have explained how you can run a salesforce apex test class, test method through VS code and get the test results. You will be able to run apex test classes and test methods effectively after watching this video. 📌Subscribe - www.youtube.com/@ThatSalesforceGuy/?sub_conf...
Automate Salesforce Authentication (Access Token) in Postman | Salesforce API with Postman
Просмотров 2,3 тыс.Год назад
In this tutorial, we dive into automating the Salesforce authentication process in Postman. Say goodbye to manually capturing access tokens and streamline your API requests. With this step-by-step guide, you'll learn how to automate the authentication process, retrieve the access token from Salesforce, and seamlessly integrate it with Postman. Save time and boost your productivity by leveraging...
Best Error Handling Logic for Salesforce Apex | Salesforce Best Practices
Просмотров 3,3 тыс.Год назад
In this video, we will cover most efficient and easy to implement error handling technique in Salesforce Apex. Whether you are a beginner or an experienced developer, it's essential to understand how to handle errors effectively to ensure your code runs smoothly. We will go over try-catch blocks, custom object to store exception. This is highly effective method, specially for analysing issues w...
How to call Apex Method from Integration Procedure
Просмотров 2,4 тыс.Год назад
In this video, I have explained how to call an Apex method from Omnistudio Integration Procedure, for this you will have to create an apex class with interface "vlocity_cmt.VlocityOpenInterface" and a method "invokeMethod". You need to add Remote Action element to your Integration Procedure and pass this apex class name and method name to Remote Class and Remote Action fields respectively. This...
7 Must Have Google Chrome Extensions for Salesforce Developers / Admins #salesforce #productivity
Просмотров 3 тыс.2 года назад
Discover the top Salesforce extensions to boost your productivity and streamline your workflow. In this video, we highlight the best Salesforce extensions on Google Chrome for increased efficiency and productivity. These extensions will help you do your daily tasks fast and efficient whether you are a developer or an admin. Extensions Link : bit.ly/3kNDCNn #learnonline #youtubelearning #chromee...
How to create custom Inbound REST API using Apex in Salesforce | #salesforce #api
Просмотров 6 тыс.2 года назад
This tutorial shows you how to create a custom Inbound REST API using Apex in Salesforce. We'll cover everything from creating the request/response wrapper, setting the endpoint, and creating a record by hitting API using Postman. 📌 Pre-Requisite Video ➤➤ Connected App & Postman with Salesforce : ruclips.net/video/Bx0qLA8E01M/видео.html By the end of this video, you'll have a solid understandin...
How to use Connected App in Salesforce | Setup Postman for API Testing #salesforce #api
Просмотров 7 тыс.2 года назад
In this video, I'll show you how to use a connected app in Salesforce to get a bearer token and create an account record using Postman. We'll start by setting up the connected app in Salesforce, then move on to using Postman to request the bearer token and make API calls to create an account record. By the end of this video, you'll have a solid understanding of how to use connected apps in Sale...
API Basics - Inbound and Outbound APIs in Salesforce | #salesforce #api #learnonline
Просмотров 6 тыс.2 года назад
In this video, we are going to look into API Basic Concepts - Inbound and Outbound APIs using the practical example. I will be starting series on API where I will be teaching how to create your own custom Rest API frameworks but before that I wanted to create this basic API overview video, in upcoming videos we are going to deep dive into more details about Salesforce APIs and their Testing. #l...
Authenticate Salesforce Org with VS Code | Run Apex Code, SOQLs in VS Code
Просмотров 1,3 тыс.2 года назад
Links : Download Salesforce CLI : developer.salesforce.com/tools/sfdxcli SFDX Commands: bit.ly/3PXxihT Timestamps : 00:00 - Intro 01:13 - Creating Project 02:36 - Authenticate Salesforce Org 04:20 - Run Apex Code in VS Code (Anonymous Apex Window Alternative) 06:24 - Run SOQL in VS Code 07:10 - Package.xml explained in short 09:05 - Deploy Class on Org through VS Code 10:00 - Duplicate Apex Scr...

Комментарии

  • @nazirsfdc1662
    @nazirsfdc1662 19 дней назад

    If some criteria’s are not tested in test classes what to do??

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 19 дней назад

      You need to debug your test method / main class.

    • @nazirsfdc1662
      @nazirsfdc1662 19 дней назад

      @ i mean that is not testable how to bypass those criteria in test classes it is not possible to test 100%code coverage right some criteria not passes inside test classes

  • @nielshoogeveen3767
    @nielshoogeveen3767 20 дней назад

    I want to use the authorize URL. How can I do that?

  • @rohanarayan
    @rohanarayan 27 дней назад

    Thanks for providing this video to config Code Analyzer. Would you happen to have any info on how to replace existing PMD rule set with own custom rule set?

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 27 дней назад

      I will suggest refer the documentation, there are plenty of configs you can do, also there is git repo - just raise a discussion ticket there - alot of people help.

  • @chetsboy1
    @chetsboy1 Месяц назад

    Where you installed plugin how Totally bullshit important points are not covered

    • @ThatSalesforceGuy
      @ThatSalesforceGuy Месяц назад

      You can check the timestamps but incase you didn't follow the video then here it is --> 01:29 How to Install Prettier, if you need further help feel free to hop on discord and I will help you. Also, In the world where you can be anything, Be Kind! 🙂

  • @KevinLevrone01
    @KevinLevrone01 Месяц назад

    Man you're way too fast and can't able to grasp. You didn't even said how to setup salesforce API in Postman.. Other than else good explanaiton

  • @maotsehernandez1
    @maotsehernandez1 Месяц назад

    Thanks bro. The nost simple explain APIs Salesforce 💪🏼

  • @ashwinpanchbuddhe4405
    @ashwinpanchbuddhe4405 2 месяца назад

    Smmoth video bro!

  • @sumitB-h8t
    @sumitB-h8t 2 месяца назад

    I’ve been struggling to get Prettier working properly after installing it, knowing I was missing some key settings. After wasting time on tons of unhelpful videos, I finally found yours, and it explained everything clearly! You showed exactly what I needed to fix and mainly how to configure it properly. Thank you

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 2 месяца назад

      Glad you were able to fix it! Cheers 🍻🍻

  • @sumitB-h8t
    @sumitB-h8t 2 месяца назад

    Exactly what I was looking for! Recently, I installed the code analyzer, but it wasn’t running as expected. I knew I was missing some setting or configuration. After searching through countless useless RUclips videos, Today I found yours, and it was a game-changer. Your video clearly explained the missing settings and how to save the result file. Thank you for addressing the root issue-most people show how to install extensions but rarely explain how to configure them. Please continue sharing videos on similar issues to help beginners like us!👍👍

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 2 месяца назад

      Thank you for the kind words Sumit, I have planned some videos. Stay connected :)

  • @TúNguyễnAnh-b7y
    @TúNguyễnAnh-b7y 3 месяца назад

    thanks for your sharing, i have a question is this is the link of an external application with my own saleforce, so now i have an app that has many users, each user of the system can connect to my own saleforce. is there a way that each user in my system does not have to set up in saleforce but just needs to log in with the link and accept the permissions that my system needs to be able to access their saleforce api?

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 3 месяца назад

      IF you want external users to access salesforce data then you can setup SSO (Single Sign On) with JIT (Just In Time)

  • @ThatSalesforceGuy
    @ThatSalesforceGuy 3 месяца назад

    also I was recording this video late night around 1 AM haha!

  • @Dinesh-g7r2q
    @Dinesh-g7r2q 4 месяца назад

    I have installed the Salesforce extension and java as well. But, RunTest not show in test class.

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 4 месяца назад

      Did you try using Java Adoptium?

    • @vanirbunny1356
      @vanirbunny1356 4 месяца назад

      Go to settings, search for Salesforcedx-vscode-core: Retrieve-test-code-coverage and enable the box

    • @Dinesh-g7r2q
      @Dinesh-g7r2q 3 месяца назад

      @@ThatSalesforceGuy Thanks, I made mistake on java configuration. It is working now. Thanks!

  • @sachindeshmukh1199
    @sachindeshmukh1199 5 месяцев назад

    Informative video, Thank you

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 5 месяцев назад

      Glad you liked it Sachin! Stay tuned for more videos :)

  • @Trailhead_Champion
    @Trailhead_Champion 5 месяцев назад

    can you make one playlist for salesforce admin for integrate with other system without coding it will be very helpful, and big fan of yours

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 5 месяцев назад

      Sure! I have some OmniStudio tutorials coming soon! Thanks alot for the support :)

  • @ThatSalesforceGuy
    @ThatSalesforceGuy 5 месяцев назад

    *** Checkout Extensions created by me : Salesforce Login Manager : chromewebstore.google.com/detail/beemdmmeeddbifmjlaiboldgnffddibd?authuser=0&hl=en Salesforce OmniStudio Helper : chromewebstore.google.com/detail/gaogdijndgigjopjiidpemfglhokcmpe?authuser=0&hl=en Comma Inserter for SOQL : chromewebstore.google.com/detail/mkpajbolnpjffffffhokhfefmjmdfgeb?authuser=0&hl=en

  • @saadainali9669
    @saadainali9669 5 месяцев назад

    Smooth and to the point 🙌

  • @saicharansomoju6480
    @saicharansomoju6480 5 месяцев назад

    You forgot to mention Salesforce changeset helper in the video, it was really helpful for deployments Thanks in advance😊

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 5 месяцев назад

      its a good one but these days everyone uses GIT and CI CD Pipelines for deployment, new video coming soon :D

  • @AjayChauhan-ix7nn
    @AjayChauhan-ix7nn 5 месяцев назад

    I really love your videos they are very helpful.......

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 5 месяцев назад

      Thanks alot Ajay! I will be posting more soon :) Stay tuned, Appreciate the kind words.

    • @AjayChauhan-ix7nn
      @AjayChauhan-ix7nn 5 месяцев назад

      @@ThatSalesforceGuy sure , I do love the content that you made and no one is talks about those basics

  • @agamyashvant5545
    @agamyashvant5545 5 месяцев назад

    Hi, how about the body in JSON format, is it something we write it manually? Thanks in advance.

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 5 месяцев назад

      Body is something that will contain data if not the URL Params, if your goal is to send information to Salesforce then you have to send data in body or URL params.

    • @agamyashvant5545
      @agamyashvant5545 5 месяцев назад

      @@ThatSalesforceGuy great thanks, I have just come across the channel, and watched allll the videos. It would be really great if you could upload videos more frequently. Thank you!!!

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 5 месяцев назад

      @@agamyashvant5545 yeah, I have planned video series and will be posting regularly now :)

  • @rresttringiddo
    @rresttringiddo 5 месяцев назад

    thanks a lot for the video, the only thing missing is the color in the cls, being like this a lot of time and need it

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 5 месяцев назад

      You can use different VS Code themes for that. I'm using Monokoi Pro here.

  • @ravigrover1923
    @ravigrover1923 5 месяцев назад

    You made it really Easy to understand & engaging. Thanks

  • @harshalpatil7752
    @harshalpatil7752 6 месяцев назад

    Superb !

  • @harshalpatil7752
    @harshalpatil7752 6 месяцев назад

    Superb !

  • @harshalpatil7752
    @harshalpatil7752 6 месяцев назад

    Superb !

  • @harshalpatil7752
    @harshalpatil7752 6 месяцев назад

    Superb !

  • @knightvampire1263
    @knightvampire1263 6 месяцев назад

    For those who are still not able to get token: Go to setup search oauth and open id connect settings then trun on oauth username password flows.

  • @priyeshmahajan6238
    @priyeshmahajan6238 6 месяцев назад

    great thanks

  • @Anony_moouse
    @Anony_moouse 6 месяцев назад

    Excellent video , just had one doubt can you explain the callback URL in detail , on what exactly you used that particular URL??

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 6 месяцев назад

      Thank you, regarding callback url, umm imagine a callback URL like a doorbell. When a computer finishes its job, it rings this special doorbell to tell your computer, 'I'm done!

  • @shubhampatidar1814
    @shubhampatidar1814 6 месяцев назад

    I have Debug System.debug(oppList) How can see Debug In Testclass in vs code

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 5 месяцев назад

      In output tab only you have to search, I will suggest put it as System.debug('oppList --> '+oppList); so you can hit CTRL + F and search for oppList , you will find your debug statement.

  • @sahilarora-ly2wy
    @sahilarora-ly2wy 6 месяцев назад

    not working getting { "error": "invalid_grant", "error_description": "authentication failure" } i double check the client_id client_secret etc ip relaxation is selected and password+security token is also added still sam eissue

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 6 месяцев назад

      there is one setting in profile to disable this

  • @OtakRajCodes
    @OtakRajCodes 7 месяцев назад

    Thank you , I was searching for a tool which made going through the logs easy & this vid solved my prob .

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 5 месяцев назад

      You are welcome, stay tunned for new videos, uploading soon :) I have created some Chrome Extensions and working on some web apps!

  • @naveenkumar-tu8yj
    @naveenkumar-tu8yj 7 месяцев назад

    RunTest not show in test class. let me know any extension need to install in vs code

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 7 месяцев назад

      Make sure you have Salesforce Extension pack installed + Supported Java Version.

  • @mee565
    @mee565 8 месяцев назад

    Good content .please create more videos on rest integration

  • @narendharg8829
    @narendharg8829 9 месяцев назад

    Need more practical videos on integration

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 9 месяцев назад

      Check this ou --> ruclips.net/video/T9S6odjkxNE/видео.htmlsi=LVHCkzXJkIjY4-Mu I will be posting few more videos soon.

  • @sanketteltumbade
    @sanketteltumbade 9 месяцев назад

    Man even after I deploy it to the org it is not visible in testing - apec tests section

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 9 месяцев назад

      can you check if you are adding @isTest to class and method?

  • @arjunkj8911
    @arjunkj8911 9 месяцев назад

    Thanks man! Just what i wanted!

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 9 месяцев назад

      Glad I could help :) I am working on a scalable API Framework as well, will publish it soon next week.

  • @vtn08
    @vtn08 10 месяцев назад

    Really helpful video compared to the other demos I've seen. Note that now Salesforce is transforming Omnistudio into the standard object. The class should be instead "global without sharing class RemoteClass implements omnistudio.VlocityOpenInterface"

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 9 месяцев назад

      Thank you, I have also shared two codes on my github you can check --> github.com/rohitasare7/Salesforce/tree/main/UtilityClasses

  • @AjayChauhan-ix7nn
    @AjayChauhan-ix7nn 10 месяцев назад

    Once again Sir, I am here going through all the videos really love the content Keep Posting the videos😄😄😄😄😄😄

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 10 месяцев назад

      Thanks alot Ajay, I have planned few good tutorials but I am just having some hard time in my life right now so I am taking some break. Although I will mostly start creating content next month :) Take care.

  • @SfdcLearner
    @SfdcLearner 10 месяцев назад

    Bro, can we use catch( exception EX) for all scenarios. I seen there many many types of exception handlings like catch(NullPointerException e), catch(DmlException e), AuraHandled Can we use just basic can we use catch( exception EX). Or do we need to use these specific one ? Please help me out with this clarification

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 10 месяцев назад

      yes, you can use ( exception ex) for all scenarios, you can use ex.getMessage(); and ex.getStackTraceString(); methods to get info on your error/exception. The reason salesforce has provided different types of exceptions is to get more granular information, like in DmlException you can call getDmlFieldNames, getDmlType etc (refer developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_exception_methods.htm) So it again depends on your use case if you need more granular data but as far as I have seen, generic exception when implemented with getMessage & getStackTraceString methods is enough. I will be doing another video in depth for exceptions and handling, might include some open source frameworks (but I don't want to include extra unncessary code in any project where chances are most likely it won't be utilized haha) Thanks for the question btw.

    • @SfdcLearner
      @SfdcLearner 10 месяцев назад

      @@ThatSalesforceGuy Thanks for the clarification ❤️

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 10 месяцев назад

      anytime!@@SfdcLearner

  • @alic
    @alic 10 месяцев назад

    You are showing in classic, can you show in Lightning?

    • @ThatSalesforceGuy
      @ThatSalesforceGuy 10 месяцев назад

      If you are a good admin, lightning or classic doesn't matter :)

  • @SagarDhawle-j7s
    @SagarDhawle-j7s 11 месяцев назад

    Hi , Salesforce Guy, you videos is very interesting and helpful keep making videos and sharing salesforce knowledge , Thankyou

  • @siddharthbhosale8979
    @siddharthbhosale8979 Год назад

    Thanks buddy

  • @bhimajamge4111
    @bhimajamge4111 Год назад

    Please explain each extension in detail

    • @ThatSalesforceGuy
      @ThatSalesforceGuy Год назад

      Hi Bhima, sure I will be posting some detailed videos soon.

  • @crosbiemjc
    @crosbiemjc Год назад

    Fantastic Video thank you for sharing

    • @ThatSalesforceGuy
      @ThatSalesforceGuy Год назад

      Glad you liked it Mark! I will be posting more framework related videos soon this year.

  • @AjayChauhan-ix7nn
    @AjayChauhan-ix7nn Год назад

    Really appreciate the hard work,

  • @AjayChauhan-ix7nn
    @AjayChauhan-ix7nn Год назад

    Thanks alot Sir, for making such Videos

  • @santoshreddy5378
    @santoshreddy5378 Год назад

    Thank You. Can you also help on How to write test class for the same class?

    • @ThatSalesforceGuy
      @ThatSalesforceGuy Год назад

      Hello Santosh, sure I will be posting the video for API Framework, I will share complete code then. Stay Tuned :)