• Sam Malhotra
  • NEWBIE
  • 50 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 6
    Replies
Notes / Attachment on opporutnity only then allow to create Opportunity Line Item
Create a Trigger on Account to insert a new record and make a custom field..when trigger save a record after that record id will show in custom field on Account..
public class Sharepoint2{
public String ConfigurationManager{get;set;}

public boolean Login(string email, string password)
     {
   
      boolean validateLogin = false;
      List<string> MessageList = new List<string>();
      
  
      if (email == ConfigurationManager.AppSettings ['Email'] 
          && password == ConfigurationManager.AppSettings ['Password'])
      {
     string authInfo = email + ':' + password;
     authInfo = Convert.ToBase64String(System.Text.Encoding.Default.GetBytes(authInfo));
  
     System.Web.HttpContext.Current.Response.AppendHeader('Authorization', 'Basic' + authInfo);
 
     MessageList.Add('Login Successful');
     validateLogin = true;
      }
      else
      {
     MessageList.Add('Invalid Username Or Password');
      }
      return validateLogin;
     }
     }


Error: Variable does not exist: AppSettings at line 11 column 41

Thanks In Advance!!
Regards Sam!!!
If Create a vf Page Standard controller Account...take a name field on page...supose  i will enter abc then it will find save record  abc and  related record display on vf page....

Thanks in Advance!!!!
 validation on Account object the shipping postal code should be in this format-134-A-A11 without using REGEX method in workflow.....
How to write Timezone IST,CST,MST in Formula in Workflow???
Hello!!
In first field user will enter a time and second field will be picklist with value CST,MST,PST,IST according to user entered time, the four other  fields should be populated with CST time Value, PST time Value,MST time value and IST time value in formula..
Notes / Attachment on opporutnity only then allow to create Opportunity Line Item
Create a Trigger on Account to insert a new record and make a custom field..when trigger save a record after that record id will show in custom field on Account..
public class Sharepoint2{
public String ConfigurationManager{get;set;}

public boolean Login(string email, string password)
     {
   
      boolean validateLogin = false;
      List<string> MessageList = new List<string>();
      
  
      if (email == ConfigurationManager.AppSettings ['Email'] 
          && password == ConfigurationManager.AppSettings ['Password'])
      {
     string authInfo = email + ':' + password;
     authInfo = Convert.ToBase64String(System.Text.Encoding.Default.GetBytes(authInfo));
  
     System.Web.HttpContext.Current.Response.AppendHeader('Authorization', 'Basic' + authInfo);
 
     MessageList.Add('Login Successful');
     validateLogin = true;
      }
      else
      {
     MessageList.Add('Invalid Username Or Password');
      }
      return validateLogin;
     }
     }


Error: Variable does not exist: AppSettings at line 11 column 41

Thanks In Advance!!
Regards Sam!!!
Hello!!
In first field user will enter a time and second field will be picklist with value CST,MST,PST,IST according to user entered time, the four other  fields should be populated with CST time Value, PST time Value,MST time value and IST time value in formula..
trigger should work for after insert , after update, after delete, after undelete 
 Thanks  in advance