-
ChatterFeed
-
3Best Answers
-
0Likes Received
-
0Likes Given
-
8Questions
-
15Replies
Creating Custom Buttons instead of Custom Links?
Hi, I have a requirement to add a custom button to a salesforce.com page layout. I have added custom links before. Is there also an option to add a "Custom Button" as opposed to a custom link? I can't find such an option but I guess one must exist.
Thanks!
- RedSales
- March 14, 2011
- Like
- 0
- Continue reading or reply
trigger for mass update campaignmember doesn't update all record but only one
trigger update_date on CampaignMember (after update) { //create list of members list<CampaignMember> memb = new List<CampaignMember>(); for (CampaignMember m : Trigger.new) { memb.add(m); } list<CampaignMember> memb_old = new List<CampaignMember>(); for (CampaignMember m2 : Trigger.old) { memb_old.add(m2); } if (memb.get(0).status == 'sent' && memb_old.get(0).status == 'not sent' ){ list<contact> list2 = [select id,date_last_sent_email__c from contact where Id = :memb.get(0).contactid]; for(contact c: list2){ if (memb.get(0).type_campagna__c.contains('%email%')){ list.get(0).date_last_sent_email__c = system.today(); } } update list2 ; } }
hi!
this code works properly with one member, if I update more than 20 records the trigger update only one member and not all 20!!
Maybe Do have I to optimize the code, any suggestions ?
thanks
- mat_tone_84
- September 18, 2010
- Like
- 0
- Continue reading or reply
Trigger on Merge operation
Hi,
Can we have capture Merge operationfor Ideas? According to Apex guide, when merge occurs trigger for after and before delete will be called. I tried with a trigger having all the events, but it does not fire on the click of Merge button for Ideas.
Please help.
- Shruti
- August 04, 2011
- Like
- 0
- Continue reading or reply
Pre-populating Idea title
Hi ,
I need to pre-poluate Idea's title thoruh URL, i.e, by passing query string. but the problem which I am facing right now is that Idea's title id is 'thePage:mainLayout:formIdea:pb:pbs:fieldTitle'.. so I am not able to pass the value for this id through query string.. Is there any way to do this?
Thanks,
Shruti
- Shruti
- May 24, 2011
- Like
- 0
- Continue reading or reply
Export to Excel using Visualforce page
Hi,
Is there any way we can export more than 2000 records using Visualforce page to excel sheet?
Thanks,
Shruti
- Shruti
- May 18, 2011
- Like
- 0
- Continue reading or reply
Queries regarding Exact Target
- Shruti
- April 06, 2011
- Like
- 0
- Continue reading or reply
Case Assignment Rule from trigger
Hi,
I want to fire Assignment rule when a case is created via Web Service in Salesforce.
I tried using DML Options but getting the following error:
"Execution of AfterInsert caused by: System.SObjectException: DML statment cannot operate on trigger.new or trigger.old:"
I am using an after insert trigger..
Please help me.. Its urgent
- Shruti
- March 26, 2011
- Like
- 0
- Continue reading or reply
Force.com Sites with Chatter
Hi,
Can we use Chatter feature in Force.com sites?
I tried using Syndication Feed but was not able to display anything... It takes me to an authorization error page..
Also , I want Users to even write feeds through Sites..
Is this possible?
Thanks,
Shruti
- Shruti
- January 27, 2011
- Like
- 0
- Continue reading or reply
Eloqua API
Hi,
Has anyone used Eloqua API to send emails to Contacts through code?
If yes , then please share the WSDL with me. I am not able to get the
"EloquaService Clietn" method from the WSDL.
Thanks,
Shruti
- Shruti
- December 28, 2011
- Like
- 0
- Continue reading or reply
Exact Target API integration
Hi,
I want to send emails through Exact Target using Exact Target's WSDL. I am not able to find any documentation related to this. Please elp me in doing this in APEX.
- Shruti
- September 20, 2010
- Like
- 0
- Continue reading or reply
Export to Excel using Visualforce page
Hi,
Is there any way we can export more than 2000 records using Visualforce page to excel sheet?
Thanks,
Shruti
- Shruti
- May 18, 2011
- Like
- 0
- Continue reading or reply
Queries regarding Exact Target
- Shruti
- April 06, 2011
- Like
- 0
- Continue reading or reply
Case Assignment Rule from trigger
Hi,
I want to fire Assignment rule when a case is created via Web Service in Salesforce.
I tried using DML Options but getting the following error:
"Execution of AfterInsert caused by: System.SObjectException: DML statment cannot operate on trigger.new or trigger.old:"
I am using an after insert trigger..
Please help me.. Its urgent
- Shruti
- March 26, 2011
- Like
- 0
- Continue reading or reply
DB query for selective records.
Hi All,
Is it possible to get the top 3 records from a custom object using a query for e.g. i have 5 records for todays date (14 Mar) and 4 records for tomorrow (15 Mar) and so on. What I need here is to get the top 3 records for each day.
Thanks
- SahilSF
- March 14, 2011
- Like
- 0
- Continue reading or reply
Creating Custom Buttons instead of Custom Links?
Hi, I have a requirement to add a custom button to a salesforce.com page layout. I have added custom links before. Is there also an option to add a "Custom Button" as opposed to a custom link? I can't find such an option but I guess one must exist.
Thanks!
- RedSales
- March 14, 2011
- Like
- 0
- Continue reading or reply
How to remove the Related List Action Column
Hi,
After removing the object level edit and delete permission from the profile. Still I am able to see the Action column in the related list. Is there is any way to remove this Action column?
- RArunraj
- February 17, 2011
- Like
- 0
- Continue reading or reply
Eloqua API
Hi,
Has anyone used Eloqua API to send emails to Contacts through code?
If yes , then please share the WSDL with me. I am not able to get the
"EloquaService Clietn" method from the WSDL.
Thanks,
Shruti
- Shruti
- December 28, 2011
- Like
- 0
- Continue reading or reply
trigger for mass update campaignmember doesn't update all record but only one
trigger update_date on CampaignMember (after update) { //create list of members list<CampaignMember> memb = new List<CampaignMember>(); for (CampaignMember m : Trigger.new) { memb.add(m); } list<CampaignMember> memb_old = new List<CampaignMember>(); for (CampaignMember m2 : Trigger.old) { memb_old.add(m2); } if (memb.get(0).status == 'sent' && memb_old.get(0).status == 'not sent' ){ list<contact> list2 = [select id,date_last_sent_email__c from contact where Id = :memb.get(0).contactid]; for(contact c: list2){ if (memb.get(0).type_campagna__c.contains('%email%')){ list.get(0).date_last_sent_email__c = system.today(); } } update list2 ; } }
hi!
this code works properly with one member, if I update more than 20 records the trigger update only one member and not all 20!!
Maybe Do have I to optimize the code, any suggestions ?
thanks
- mat_tone_84
- September 18, 2010
- Like
- 0
- Continue reading or reply
Error using 'Generate from WSDL' with Zuora WSDL 22.0
I imported Zuora WSDL v22.0 into my Dev Org using 'Generate from WSDL' and received a compile error on the 'core' API file. The first two (Object API and Fault API) went fine. I received an unexpected token on the word 'update' and expect I would receive one on 'delete' which occurs further down the file. So Zuora has update and delete methods and so does Salesforce - this can't be the first time. - Given that Zuora is at API 22 and SF is at API 19 this has to be something new? I have contacted Zuora but think this is more of an SF issue. The WSDL is copied below for reference. is too large to be included.
Ideas? I'd love to hear from SF reps on this.
- mworld2
- July 23, 2010
- Like
- 0
- Continue reading or reply
Delegated Portal Admin cannot create customer portal users
I have enabled customer portal and created a Customer Portal Manager user with Portal Super User and delegated admin access. So this user can login to customer portal, add contacts and enable contacts for Customer Portal. It works fine if I enable a contact and use Customer Portal Manager license.
However, if I select High Volume Customer Portal as the license choose a profile and try to Save, I get the following error:
Guest Users cannot have a user role
The problem is, the role dropdown does not allow me to select no role.
Note that this is happening only when trying to enable customer portal user from the Customer Portal logged in as portal super user. When I try the same within my salesforce org, the Role dropdown is disabled when I select High Volume Customer Portal.
Is this a bug or am I doing something wrong?
- mamta1
- June 07, 2010
- Like
- 0
- Continue reading or reply
using DMLOptions in trigger - not working
any reason why the assignment rules won't trigger for new cases in this trigger:
trigger WebCaseAssign on Case (before insert) {
integer i = 0;
for (Case theCase:trigger.new) {
if(theCase.Origin == 'Web') {
Database.DMLOptions dmo = new Database.DMLOptions();
dmo.assignmentRuleHeader.useDefaultRule = true;
theCase.setOptions(dmo);
}
i++;
}
}
I assume it's related to this issue/bug with Salesforce:
http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=10690
- jduhls
- April 22, 2009
- Like
- 0
- Continue reading or reply