Category: Zoho
Salesforce | How to create and call a webservice in Salesforce
We can create a web service in Salesforce using “web service” keyword. The web service is always of static type and can return values. Here is the code to create a web service: Syntax: public class className { webservice static
Javascript | How to change form action dynamically
Suppose on click of an element we want to change the form action URL. In this example, we are assuming a textbox in which user will type a value and then click search magnifying glass icon. On click of search
Netsuite | Authentication/Login to Netsuite sandbox account through java code using Netsuite WSDL
Authentication/Login to Netsuite sandbox account through java code using Netsuite WSDL In order to login to your sandbox Netsuite sandbox account via code, you need to have below files handy: 1. Netsuite sandbox WSDL: The latest version of wsdl can
Mysql Workbench | How to copy Remote database into your local machine
1. Select Database: Schema Transfer Wizard from the Mysql workbench menu bar. You will see schema transfer wizard on your screen as below: Click on Start the Wizard option. 2. Connection Selection: Now select your source and destination location to copy database:
How to send SMS through code
There are many SMS sending gateways that provide REST services to send SMS. You need to register and purchase credits first before SMS can be sent. One such gateway is ClickaTell: Click to view Below is the sample REST call
Salesforce | Show Loading on AJAX request and disappear after completing its progress.
Solution : In many scenarios, apex button click sends an AJAX request (for e.g. to render a part of Visualforce page after completing its progress). Sometimes the AJAX request takes so much time. To cope with this issue we have
Salesforce | Send email using apex code along with attachment and manage email history
1. Send simple email using apex : Messaging.SingleEmailMessage emailTobeSent = new Messaging.SingleEmailMessage(); List <String> listEmailMembers = new List<String>(); listEmailMembers.add(’email@domain.com’); emailTobeSent.setToAddresses(listEmailMembers); emailTobeSent.setSubject(‘Hi, Just Testing’); emailTobeSent.setHtmlBody(‘msg : ‘ + msg); Messaging.SendEmailResult [] r1 = Messaging.sendEmail(new Messaging.SingleEmailMessage[] {emailTobeSent} 2. Use template instead of
How to add new custom HTML pages in Totara/Moodle
Totara / moodle does not have the default feature to add custom HTML pages and display on the site. But we can achieve this by installing a plugin: “General plugins (Local): Static Pages” Steps to install and use this plugin
Salesforce | Set CreatedDate for s-object records in test class
In some cases, we need to set CreatedDate for records. setCreatedDate() method can be used to set CreatedDate for records. For Example : Set createddate for a contact in test class Contact con = new Contact() con.FirstName=’Firstname’; con.LastName=’LastName’; insert con;