How do you ensure API security and avoid data leakage
Ensuring API security and preventing data leakage is critical in any Salesforce integration. Whether you’re exposing or consuming APIs, you must follow best practices around authentication, authorization, encryption, data validation, and monitoring. Key Strategies to Secure Salesforce APIs & Prevent
Salesforce | System.Callout Exception: Unauthorized End Point
I tried to send REST request to my server on click of a custom button in Salesforce. It shows me “unauthorized end point exception”. Solution : To resolve this issue we need to add the server address as a remote
Selenium Locators
To locate elements in Selenium WebDriver, we can use findElement() for single element and findElements() to locate a list of elements satisfying the search criteria. List of different ways in which both the methods can be used are given below:
How to install and use command line tools in Heroku
What is Heroku Command Line: The heroku command-line tool is an interface to the Heroku Platform API and includes support for things like creating/renaming apps, running one-off dynos, taking backups, and configuring add-ons. It is generally installed in your local
Java | Base64 Encoding/Decoding with javax.xml.bind.DatatypeConverter
Base64 Encoding/Decoding with javax.xml.bind.DatatypeConverter in java 6 and 7. Solution: javax.xml.bind.Datatypeconverter class is the built in class inside JRE. We don’t need any third party library as we need in case of Cipher encoding/decoding method. javax.xml.bind.DatatypeConverter.printBase64Binary(byte[]) encodes a byte[] array into
CakePHP Security Component
CakePHP Security Component is very useful and provides an easy way to enable very tight security in our application: 1. It can restrict which HTTP methods our application accepts. 2. It provides Form Tampering Protection. 3. It can force to
Jquery | How to create/edit Jquery Datatable dynamically
How to create/edit Jquery Datatable dynamically? HTML code: <div class=”col-md-12 col-sm-12 col-xs-12″> <table id=”table”> <tbody> <tr> <th>Rules</th> </tr> </tbody> </table> </div> <button id=”go”>Go</button> Here is the javascript function: function addData() { var data=[this array contains all the values that we
Selenium Webdriver script | Open new browser tab and switch between tabs
In Selenium Webdriver script how to open a new browser tab and then switch between first browser tab and 2nd browser tab? Solution: This is the script to achieve it, go through comments in the code to understand how the
Moodle | Add and access custom elements in Blocks
In Totara how to add custom HTML elements (checkboxes, input boxes etc) and then access the value selected by user on server side: 1. Adding custom elements. 2. Accessing values of custom elements. Each problem is discussed below: Overview: In Totara,
Totara | How to enroll audience to Course/Program
Problem: I want to enroll audience in course/program and I do not know that how we can enroll audience in course/program. To enroll audience in course/program, I have followed the below steps: Solution: 1.Click Audiences link. To click on Audience
