-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
7Questions
-
0Replies
Objects which are eligible for approval process and which are not
Hello,
i want to know objects which are eligible for approval process and which are not. and i need to query those objects in a class.
Thanks.
- raghava520
- January 19, 2017
- Like
- 0
- Continue reading or reply
how to assign the page layouts with different record types Using permission sets .
HI experts,
i have different recordTypes ,different permission sets, and different page layouts, now i need to assign the page layouts to the permissionsets for different recordtypes
how to assign the page layouts with different record types Using permission sets.
please help me
i have different recordTypes ,different permission sets, and different page layouts, now i need to assign the page layouts to the permissionsets for different recordtypes
how to assign the page layouts with different record types Using permission sets.
please help me
- raghava520
- February 04, 2015
- Like
- 0
- Continue reading or reply
problem with recursive trigger
Hi Experts i am writing a trigger on account object if create contact checkbox is checked then it should create the contact with the same values given in account such as account name ,phone etc
here is my trigger
trigger accctrg on Account (after insert,after update) {
Account acc = trigger.new[0];
if(recclass.isrecursive = true){
recclass.isrecursive=false;
account ac = new account(id= acc.Id);
if(acc.create_contact__c== true){
Contact con = new Contact();
con.LastName = ac.Name;
con.Phone = ac.Phone;
con.AccountId = acc.Id;
update con;
}
}
}
public with sharing class recclass {
public static Boolean Isrecursive = true;
}
iam not getting any errors but my code is not working
Regards
Raghava
here is my trigger
trigger accctrg on Account (after insert,after update) {
Account acc = trigger.new[0];
if(recclass.isrecursive = true){
recclass.isrecursive=false;
account ac = new account(id= acc.Id);
if(acc.create_contact__c== true){
Contact con = new Contact();
con.LastName = ac.Name;
con.Phone = ac.Phone;
con.AccountId = acc.Id;
update con;
}
}
}
trigger class to avoid recursion
public with sharing class recclass {
public static Boolean Isrecursive = true;
}
iam not getting any errors but my code is not working
Regards
Raghava
- raghava520
- February 21, 2014
- Like
- 0
- Continue reading or reply
how to Clear text field if validation fails
Hi Experts
i have written a trigger on contact object which ristrict the user to enter only text in language field
trigger contrg on Contact (before insert, before update) {
Contact con = trigger.new[0];
string s1= con.Languages__c;
if(s1.Isalpha()==false){
con.languages__c.Adderror('please enter only text');
}
}
it is working is throwing error when i hit sabe
but the false value which user given is remainig on the text feild so every time user have to delete and must give the correct value is there any way to Clear text field if validation fails
Thanks
Raghava.
i have written a trigger on contact object which ristrict the user to enter only text in language field
trigger contrg on Contact (before insert, before update) {
Contact con = trigger.new[0];
string s1= con.Languages__c;
if(s1.Isalpha()==false){
con.languages__c.Adderror('please enter only text');
}
}
it is working is throwing error when i hit sabe
but the false value which user given is remainig on the text feild so every time user have to delete and must give the correct value is there any way to Clear text field if validation fails
Thanks
Raghava.
- raghava520
- January 10, 2014
- Like
- 0
- Continue reading or reply
System.LimitException: Apex CPU time limit exceeded
could any one tell me why i am getting this exception
System.LimitException: Apex CPU time limit exceeded
- raghava520
- December 14, 2013
- Like
- 0
- Continue reading or reply
Hi All i could you help me i am new to salesforce
when to go for eclipse and when to go for developer console
- raghava520
- December 09, 2013
- Like
- 0
- Continue reading or reply