AuthorNishant Bamb

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...

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...

How to create dynamic drop downs in Salesforce?

H

I had task of creating two drop downs for a custom object in Salesforce: 1. Country – Listing all countries of the world. 2. State – Listing all States for selected Country dynamically. This wasnt a visualforce page, had to do it through custom fields itself. So I came across Dependent Fields concept in Salesforce. Its pretty easy to use and I just loved the way Salesforce has made it...

SOLVED: “This record type cannot be deactivated because the following profiles use this record type as default.”

S

I just thought I’ll play with a Record Type for Opportunity and delete it later but got an headache finding how to solve this error. Finally, here is the way: Goto Setup -> Administration Setup -> Manage Users -> Profile Go inside your corresponding profile and search for that particula Record Type name, in my case it was “Partner Opportunity Record Type”. Edit this and...

Could not load file or assembly ‘MySql.Data, Version=5.1.5.0, …” [Solved]

C

Error: If you are accessing MySql from your ASP.NET code and getting this error after uploading code to Server: Parser Error Message: Could not load file or assembly ‘MySql.Data, Version=5.1.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d’ or one of its dependencies. The system cannot find the file specified. Solution: Make sure /bin/MySql.Data.dll exists on root folder. I was...

APEX Sharing Violation – Security Review Error Solved

A

In the process of making a salesforce app live on appexchange, we need to get our package tested and passed from security review team. During such one process, my app got rejected due to APEX Sharing Violation error as reported by Checkmarx Report. It was termed as Apex Force com Serious Security Risk. Description of Issue: The Force.com platform makes extensive use of data sharing rules. Each...

Extracting data from Apple iTunes

E

I tried a lot to find RSS feeds for latest apps getting posted on Apple iTunes store under all categories but couldnt find anywhere, not sure why Apple does not provide such feed. So I decided to write one of my own and below is how I accomplished the task using curl in php. Through httpfiddler I first out request headers sent by iTunes software and used the same.   <?php function...

How to import Chinese characters in Mysql Table?

H

I know proper way to do this does exists but I was falling short of time and wasnt able to find perfect solution, so used this a way around to import a list of chinese cities in chinese language to one of my mysql table. 1. 1st changed the table structure to make the city field collation as big5_chinese_ci 2. I had the list of chinese cities in chinese language in excel sheet. Using a small VBA...

Welcome

W

Welcome to Nanostuffs Blog ! This is a portal exclusive for Nanostuffs Brightest Minds to share their technical, personal, and every kind of experience on web. We look forward to keeping you informed with timely articles on wide range of topics, such as: iPhone/iPad Development Android Development Salesforce Customization/Apex Programming PHP Insights .NET Brainstorms Unity 3D Challenges HTML5...

Category