Authorjuilee.joshi

Image Download Function in C#.net

I

public Image DownloadImage(string _URL) { Image _tmpImage = null; try { // Open a connection System.Net.HttpWebRequest _HttpWebRequest = (System.Net.HttpWebRequest)System.Net.HttpWebRequest.Create(_URL); _HttpWebRequest.AllowWriteStreamBuffering = true; // You can also specify additional header values like the user agent or the referer: (Optional) _HttpWebRequest.UserAgent = “Mozilla/5.0...

How to export leads to excel sheet in salesforce apex

H

Here is the code for exporting leads to excel in salesforce apex Class Code: public class exportExcel { public string header{get;set;} public List<wrapper> lstwrapper {get; set;} public class wrapper{ public string Id{get; set;} public string Name{get; set;} public string Email{get; set;}    } public string Filetype{get;set;} public boolean isExcel {get;set;} public boolean isCsv {get;set;}...

How to get parameters passed to a URL in salesforce apex

H

If we pass parameter while creating a page in salesforce apex like this public PageReference setParameter() { public papageReference ref = new PageReference(‘/apex/print?email=’ + textEmail1);    ref.setRedirect(true); return ref; } where email is the parameter. Then using the following function we can get the value of the parameter passed public getParameter() { email = ApexPages...

Maximum number of custom fields allowed for Developer’s edition of Salesforce.com

M

I was creating custom fields for a particular site and just got notification that the maximum number of custom fields reached. Please contact your administrator. The maximum number of custom fields allowed for developer’s edition are 500 fields/per object. Similarly for professional edition it is 100 fields/object.Additional restrictions apply for activities, long text area fields...

Category