-
ChatterFeed
-
0Best Answers
-
1Likes Received
-
0Likes Given
-
7Questions
-
7Replies
Recent record from related list
Hi,
I need to write a trigger to get most recent record from related list "CampaignMember" and update to it a custom field on parent "Contact".Any Idea?
Thanks
- sfdc.dev.ax856
- August 09, 2011
- Like
- 0
- Continue reading or reply
Replicating the standard behavior.
Hi ,
Notes and Attachments related list on the Account displays Attachments not just from Account but also from Cases, Contacts, and Opportunities linked to the Account.I need to replicate the same behavior for my custom object.Is it possible to create a vf page as related list ? Any Idea..
Thanks
- sfdc.dev.ax856
- August 06, 2011
- Like
- 0
- Continue reading or reply
Count related records in trigger
Hi All,
I need to count related records in trigger and it should work in bulk.Any Idea ?
- sfdc.dev.ax856
- July 31, 2011
- Like
- 0
- Continue reading or reply
Dashboard to PDF
Hi All,
I have a requirement to print dashboard in pdf. Similar to this idea http://success.salesforce.com/ideaview?id=08730000000BrLkAAK .Any idea on this.
Thanks
- sfdc.dev.ax856
- July 12, 2011
- Like
- 0
- Continue reading or reply
Dashboard to PDF
Hi All,
I have a similar req http://success.salesforce.com/ideaview?id=08730000000BrLkAAK.Any help is greatly appreciated.
Thanks.
- sfdc.dev.ax856
- July 11, 2011
- Like
- 1
- Continue reading or reply
Help on Lookup filters
Hi,
When user edits an old record with an invalid value because of the filter (the value was valid before), if user does not change the lookup field value, the record should be saved. ie, the lookup filter should only apply on creating new record (isnew), or editing the lookup field in an existing record (ischanged), it should not apply when user edits other fields in an existing record(not(ischanged()).
Here is the scenario:
I have purchase items which user can select to add to a purchase requisition record, and I have a lookup filter so user can only select "active" items(if the price changed for an item, the old item will be marked inactive and new record will be created).
The issue is if user edits an old purchase requisition record which has an inactive item, they cannot save because the item is inactive (but it was active at the time of purchase), and they are not changing the item during the editing.
Can you please provide alternative for this.
- sfdc.dev.ax856
- November 19, 2010
- Like
- 0
- Continue reading or reply
Lookup filters Validation aspect.
Hi,
When user edits an old record with an invalid value because of the filter (the value was valid before), if user does not change the lookup field value, the record should be saved. ie, the lookup filter should only apply on creating new record (isnew), or editing the lookup field in an existing record (ischanged), it should not apply when user edits other fields in an existing record(not(ischanged()).
Here is the scenario:
I have purchase items which user can select to add to a purchase requisition record, and I have a lookup filter so user can only select "active" items(if the price changed for an item, the old item will be marked inactive and new record will be created).
The issue is if user edits an old purchase requisition record which has an inactive item, they cannot save because the item is inactive (but it was active at the time of purchase), and they are not changing the item during the editing.
Can you please provide alternative for this.
- sfdc.dev.ax856
- November 19, 2010
- Like
- 0
- Continue reading or reply
Dashboard to PDF
Hi All,
I have a similar req http://success.salesforce.com/ideaview?id=08730000000BrLkAAK.Any help is greatly appreciated.
Thanks.
- sfdc.dev.ax856
- July 11, 2011
- Like
- 1
- Continue reading or reply
Trigger code error. Please help!
Hello,
I am trying to write a trigger that updates the value of a field on an object when records are created on another object that references that particular record on the first object. For instance, I have a field on the ACCOUNT object called "Available number of contacts," I would like the value in this field to reduce by 1 whenever a record in the CONTACT object is created that references the particular Account. Here is the code, but I keep getting the same error when I hit save: "Variable Available_Number_of_Contacts does nto exist. Please review my code and let me know where I went wrong. Thank you.
trigger decreaseAvailableContactsOnAccount on Contact (after insert) { Map<Id,Integer> accountTotal = new Map<Id,Integer>(); for(Contact c:Trigger.new) { if(c.accountid==null) continue; if(accountTotal.get(c.accountid)==null) accountTotal.put(c.accountid,1); else accountTotal.put(c.accountid,accountTotal.get(c.accountId)+1); } List<Account> accounts = new List<Account>(); for(Account a:[SELECT id, Number_of_Available_Contacts__c FROM Account WHERE id in :accountTotal.keyset()]) { a.Number_of_Available_Contacts__c -= accountTotal.get(a.id); accounts.add(a); } update accounts; }
- lovetolearn
- September 03, 2011
- Like
- 0
- Continue reading or reply
Recent record from related list
Hi,
I need to write a trigger to get most recent record from related list "CampaignMember" and update to it a custom field on parent "Contact".Any Idea?
Thanks
- sfdc.dev.ax856
- August 09, 2011
- Like
- 0
- Continue reading or reply
Replicating the standard behavior.
Hi ,
Notes and Attachments related list on the Account displays Attachments not just from Account but also from Cases, Contacts, and Opportunities linked to the Account.I need to replicate the same behavior for my custom object.Is it possible to create a vf page as related list ? Any Idea..
Thanks
- sfdc.dev.ax856
- August 06, 2011
- Like
- 0
- Continue reading or reply
Count related records in trigger
Hi All,
I need to count related records in trigger and it should work in bulk.Any Idea ?
- sfdc.dev.ax856
- July 31, 2011
- Like
- 0
- Continue reading or reply
Dashboard to PDF
Hi All,
I have a similar req http://success.salesforce.com/ideaview?id=08730000000BrLkAAK.Any help is greatly appreciated.
Thanks.
- sfdc.dev.ax856
- July 11, 2011
- Like
- 1
- Continue reading or reply
Dashboad in a Vf page
Is there any possiblity to place a dashboard in to a vf page? if yes just post me the idea to implement.
Thank you..
Regards,
kiran
- kiranmutturu
- April 15, 2011
- Like
- 0
- Continue reading or reply