Kloudrac Assesment - Senior Salesforce Developer - Assesment - 2
Kloudrac Assesment - Senior Salesforce Developer - Assesment - 2
This assessment will test your ability to work with Salesforce Lightning Web Components
(LWC) and integrate external APIs, such as the GST API, in a Salesforce environment. You will
be asked to create a fully functional LWC that can interact with the GST API, display the
response in a table, and store the data in a custom Salesforce object.
Objective:
Integrate the GST API portal into a Salesforce Lightning Web Component to:
2. API Integration:
a. Create a GET GST DETAILS button that will trigger an API call to the GST API
when clicked.
a. Display the API response in a table with columns for each detail mentioned
above.
b. The table should be dynamically populated with the data returned by the API.
4. Save Button:
a. After displaying the GST details in the table, add a Save button below the table.
b. Clicking this button should store the details in a custom object called
GST_Details__c.
1. GST_Number__c (Text)
2. Legal_Name__c (Text)
3. Address__c (Text)
4. GST_Status__c (Picklist: ‘Active’, ‘Inactive’, etc.)
5. Business_Type__c (Picklist: ‘Regular’)
Assessment Instructions:
API DETAILS : -
curl --location
'https://api.e-waybill.in/api/gstin/validate?gstin=09AAFCK6485M1ZR'
Submission Guidelines
1. GitHub Repository: Create a GitHub repository with the following:
○ A README file that explains your approach and any assumptions.
○ Apex classes that implement the business logic.
○ Custom objects and fields for storing business and account details.
○ API endpoints exposed via Apex REST.
○ Unit test classes covering different scenarios.
2. Pull Request: Create a pull request to the main branch with a description of your
changes and submit it.
Clone the Repository to Your Local Machine: Open your terminal/command line
and use the following command to clone the repository (replace your-username
and your-repository with the appropriate values):
git clone
https://github.com/your-username/your-repository.git
cd your-repository
3. Create a New Branch for Your Changes: It's best practice to make changes in a
separate branch instead of directly on main or master:
4. Make Your Code Changes: Make the necessary changes to the code on your local
machine.
Stage and Commit the Changes: After you've made your changes, you need to stage
and commit them:
git add .
git commit -m "Description of changes made"
5. Push the Changes to GitHub: Push your changes to the newly created branch on
GitHub:
7. Share the Pull Request Link: Once the pull request is created, you can share the link
to it.
LWC Component 40% Input field, button, and table display work as
Functionality expected.
Data Handling and 20% Proper validation, error handling, and API response
Validation processing.