CategorySalesforce.com

How to create object in salesforce through Web-Service using Apex Metadata API

H

Hi All, many times we required to create objects into Salesforce through web services i.e. using Metadata API. Here is a sample code by which we can create such custom object into the Salesforce. for the Apex Metadata Api please refer Apex Metadata API this link. // Visualforce Page code <apex:page controller="MetadataUse" action="{!createObject}"> </apex:page> // Apex code...

Buttons not working on visualforce pages in partner or customer portal. [solved]

B

Recently I came across this weird problem for which I couldnt find any help on Internet. I created a visualforce page having several buttons & input fields. Some of the buttons were redirecting to other pages & some doing processing on same page. This page when logged in from Salesforce were working perfectly, the buttons were behaving properly as supposed to but when accessing the same...

How to enable .net to access Quickbooks company file

H

To do this You should have : A) QuickBooksEnterprise (here we used 13) B) QBSDK  (here we used  12.0) c) Microsoft Visual Studio 2008 How we can do ? a.  Open Connection to QuickBooks b.  Begin session with a company file c.  Construct set of request messages d.  Send request to QuickBooks e.  Receive response messages f.   End session g.  Close connection a. Open Connection to QuickBooks :...

How to implement Paging in Apex Salesforce

H

Put this code in your class & replace your query for myRequestsSetCon: public ApexPages.StandardSetController myRequestsSetCon { get { if(myRequestsSetCon == null) { myRequestsSetCon = new ApexPages.StandardSetController(Database.getQueryLocator([ select Id, Name, Merchant_Name__c, Requested_Pricing_Change_Effective_Date__c, Status__c, CreatedDate from Global_Merchant_Pricing_Change__c where...

Convert Lead Through Apex Salesforce

C

The following code automatically converts a lead into an Account/Contact, skipping creating an opportunity and redirects to the newly created Contact page. Apex Class: public class Nanostuffs_clsConvertLead { public PageReference convert() { try { String id = ApexPages.currentpage().getParameters().get('id'); Database.LeadConvert lc = new Database.LeadConvert(); lc.setLeadId(id); lc...

How to add a custom button to contact in salesforce

H

Open you salesforce developer’s account: Go to Setup->Customize->Contacts->Buttons and Links-> Custom Buttons 1. Create custom button 2. Create a tab corresponding to the page and custom button 3. Check out the parameter id in button link or url Sample code for custom button on contact page: Task: I’d like a custom button written for Salesforce which I could install on the...

Force.com IDE – JVM terminated. Exit code=-1 Error [Solved]

F

Just installed Force.com IDE on my Win7 Desktop, using the standalone installer from Salesforcewebsite. This is a pulse based installer that installs Force.com IDE as an eclipse plugin. However, once the installation finished I was greeted with the following error: JVM terminated. Exit code=-1. Below is a screenshot of the error pop-up.. How to solve this issue : In my case the problem was that ...

How to send email through salesforce apex?

H

  Class Code: public class clsTest { public Boolean emailSent { get; set; } public void sendMail(string email){ Messaging.SingleEmailMessage mailHandler = new Messaging.SingleEmailMessage(); String[] emailRecipient = new String[]{email}; //set the recipient mailHandler.setToAddresses(emailRecipient); //set the reply email address mailHandler.setReplyTo('juilee.joshi@nanostuffs.com');...

Unable to access Products from Salesforce.com Partner Portal [Solved]

U

Hi Folks, I was trying to setup a Salesforce.com Partner Portal for one of my client and realized that no matter I give Read access to Gold Partner User profile, I still cant see Products when logged in as a partner in the partner portal. Additionally, When you goto Setup -> Customize -> Partners -> Settings -> Customize Portal Tabs, I cant at all see Products as an option in the list...

Category