Posts

Showing posts from August, 2024

create server.crt and server.key file

                     Creating/Generating Server.crt and server.key file Steps: 1. Download OpenSSL in your system  2. install this 3. run this command from OpenSSL script prompt :  openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt   4 . files would be generated and would be stored in your local system folder. 👍 Like this guide if it works for you! 💬 Comment below if you need any help or have questions.

Create Connected App in salesforce for automatic deployment

Image
 Connected App creation Steps to create Connected App in salesforce: 1. login into your salesforce org using link :    1.1 personal org/production org :  production org     1.2 Sanbox org login Url  :  Sandbox 2. go to setup  3. click on quick search and type "App manager " 4. click on New Connected App button right side and fill the mandatory details: and check Enable oAuth settings: 2 5. give two permissions  as selected in screenshot and add your digital signature(server.crt file server.crt ) :   6. save this and scroll down and get Manage credentials(customenr key & customenr secret) under oAuth policies. 7. go to the top and click on Edit Policies and under Oauth policies select highlighted setting in screenshot below and save: 8. once saved , go to profile section in same page and select profile. your connected app is ready. 👍 Like this guide if it works for you! 💬 Comment below if you need any help or have questions.

Create github CI/CD pipeline/github action for salesforce deployment / How to Use GitHub with VS Code and Deploy with a Connected App in salesforce

Image
How to Use GitHub with VS Code and Deploy with a Connected App 1. Create a GitHub Account or Sign In     1. Go to GitHub .     2. Sign Up: If you don’t have an account, click on “Sign up” and follow the prompts to create        a new account.    3. Sign In: If you already have an account, click on “Sign in” and enter your credentials. 2. Create a Repository   2.1. On GitHub’s homepage, click the + icon in the top-right corner and select  "New repository".   2.2. Fill in Repository Details:    - Repository Name : Choose a name for your repository.    - Description: Add a brief description of your repository.    - Public/Private: Choose whether you want your repository to be public or private.   2.3. Click “Create repository”. 3. Pull Your GitHub Repo in VS Code and Push Your Code   3.1. Open VS Code.   3.2. Open the Terminal: You can do this by navigating to Terminal > New Terminal from the top menu.   3.3. Add the Remote Repository:    - Run the following command, replacin