• Mandadi
  • NEWBIE
  • 10 Points
  • Member since 2013
  • Biz Impact Cloud Solutions

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 9
    Questions
  • 8
    Replies
Hi All,

     I need to build a regular expression to replace all the special characters in the string with space except those between quotes.

Can any one help me what is the regular Expression for this....


Thanks,
Hi All,

  I have List of String Values like [abc, “abcd” ,‘abcde’].
  Now i want to check all the string values and find which string contains single quotes(') and which one contains double quotes using apex.

Can any one help me how to solve this problem......


Thanks,
 Murali
  

can anybody explain me what is lead life cycle..?

 Hi All,

 

      I have button in vf page, whenever i click that button i want to display the detail page of that record.

 

      Can any one help me how to solve.

 

Thanks

 

Can any body help me what are the differences between SOAP API and REST API..?

Hi ,

 

    I want to Enable Person Accounts in Developer Edition , Can you anyone can what are all the procedure to activate or Enable person Account .

 

 

Regards ,

 GaneZ

trigger cloningopportunity on Opportunity (after insert) {

set<id> oid = new set<id>();
RecordType record =[select id from RecordType where name='1*2'];
for(Opportunity opp : Trigger.new)
{
if(opp.RecordTypeId == record.Id)
{
oid.add(opp.Id);
System.debug('cloningvalues:' + oid);
}

}
list<Opportunity> olist = [select id,Name,CloseDate,StageName,RecordTypeId from Opportunity Where Id in:oid];

for(Opportunity opps :olist)
{
Opportunity o = new Opportunity();
o.Name=opps.Name;
o.CloseDate=opps.CloseDate;
o.StageName=opps.StageName;
o.RecordTypeId =opps.RecordTypeId ;
System.debug('cloningvalues1:'+o.StageName );
insert o;


}

}

 

throws error

 

AfterInsert caused by: System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY,

Can any one explain what is 'ap1' in 'https://ap1.salesforce.com' Note: I am accessing from India. Thanks in advance, Kiran.