-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
8Questions
-
7Replies
Can we @ a user using trigger on create of task
Can we @ a user on create of task? If so ,please let me know .
Thanks!
-
- sindhu@demo.com
- April 26, 2013
- Like
- 0
- Continue reading or reply
How to query the logged in User?
Hi Everyone, I have a custom field "Section__c" on "User" object and "Issue" custom object.I need a trigger to fire on creation of Issue record. When a user creates a new "Issue" record assign the value of Issue_Section__c to equal the logged in user's division (user. Section__c). How to query the logged in user ??? Thanks!!!!! Regards, Prasanna
-
- sindhu@demo.com
- August 23, 2012
- Like
- 0
- Continue reading or reply
How to add Custom List Button in related list of Custom Object
Hi, I have created a VF page "AddMultipleOppy" which adds Multiple opportunities related to a custom Object "Project__c".I want this Vf page to be displayed as list button in related list of opportunities on "Project__c" object So,I have created the custom list button on "Project__c " object and tried to add this button on related list properties of "Opportunity" object in page layout but I could find this button. Am I missing out on anything?? Thanks Regards, Prasanna
-
- sindhu@demo.com
- August 20, 2012
- Like
- 0
- Continue reading or reply
Trigger on Activities in "Account" Object
Hi Everyone,
I have a custom field in "Account" Object(Remaining Meetings).
I need a trigger to roll up on Activities related to the Account object.
All the openactivities(Count) of type "Meeting" should be counted and displayed "remaining Meetings" field.
I have written a trigger on Tasks to count the no of open activities when a task is created and assigning the count value to the field in Account but the value is not updated.
Can anyone help me with this??
trigger UpdateAccount on Task (before insert)
{
for(Task t : Trigger.new)
{
Account acc =[SELECT id,Annual_On_Site_Meetings__c,Actual_Meetings_Year_to_Date__c,(SELECT Status,WhatId from OpenActivities Where ActivityType Like 'Meeting') FROM Account where id=:t.WhatId];
integer count = 0;
for(OpenActivity oa:acc.OpenActivities)
{
count++;
}
System.Debug('-------Count'+count);
acc.Annual_On_Site_Meetings__c=count;
}
}
-
- sindhu@demo.com
- August 10, 2012
- Like
- 0
- Continue reading or reply
How to write a trigger on a Chatter post on the Account object
Hi Everyone!! I need a trigger on a Chatter post on the Account object that does the following: • If the hashtag “#request” is used in the post, the trigger creates a record in the Request__c custom object. • The Account ID is populated in Account__c • The Type__c field is “Other” It would be helpful if someone help me out in writing trigger on chatter post on "Account" object. Regards, Sindhu
-
- sindhu@demo.com
- July 30, 2012
- Like
- 0
- Continue reading or reply
trigger on a Chatter post on the Account object
Hi Everyone!! I need a trigger on a Chatter post on the Account object that does the following: • If the hashtag “#request” is used in the post, the trigger creates a record in the Request__c custom object. • The Account ID is populated in Account__c • The Type__c field is “Other” It would be helpful if someone help me out in writing trigger on chatter post on "Account" object?? Regards, Sindhu
-
- sindhu@demo.com
- July 30, 2012
- Like
- 0
- Continue reading or reply
How to execute the trigger on click of a custom button
Hi, I have written a trigger and is perfectly fine.I want this trigger to be executed when clicked on a custom button in Case object. Can anyone help me out with this??
-
- sindhu@demo.com
- July 25, 2012
- Like
- 0
- Continue reading or reply
How to compare the value in picklist with the checkbox fields in other object
Hi Everyone, I have a "Case" object in which there is a picklist field "Model" with values "CFM-2,CFM-3,CFM-5 and CFM-7" I have a custom object named "Support Agreement" (lookup with Case) which contains the various checkbox fields "CFM-2 ,CFM-3,CFM-5,CFM-7" How to compare the value in the picklist(Model) to be matched with the checked value of different checkbox fields available in "Support Agreement" Is there any way out to do this?? Eg: The value in picklist should be compared with checked value in "support agreement" and if both are same,other field should be updated Is there any way to find which field is checked in "support Agreement"(out of CFM-2 ,CFM-3,CFM-5,CFM-7 fields) so that this checked field name can be compared with the value in picklist field?? Regards, Sindhu
-
- sindhu@demo.com
- July 23, 2012
- Like
- 0
- Continue reading or reply
How to add Custom List Button in related list of Custom Object
Hi, I have created a VF page "AddMultipleOppy" which adds Multiple opportunities related to a custom Object "Project__c".I want this Vf page to be displayed as list button in related list of opportunities on "Project__c" object So,I have created the custom list button on "Project__c " object and tried to add this button on related list properties of "Opportunity" object in page layout but I could find this button. Am I missing out on anything?? Thanks Regards, Prasanna
- sindhu@demo.com
- August 20, 2012
- Like
- 0
- Continue reading or reply
Trigger on Activities in "Account" Object
Hi Everyone,
I have a custom field in "Account" Object(Remaining Meetings).
I need a trigger to roll up on Activities related to the Account object.
All the openactivities(Count) of type "Meeting" should be counted and displayed "remaining Meetings" field.
I have written a trigger on Tasks to count the no of open activities when a task is created and assigning the count value to the field in Account but the value is not updated.
Can anyone help me with this??
trigger UpdateAccount on Task (before insert)
{
for(Task t : Trigger.new)
{
Account acc =[SELECT id,Annual_On_Site_Meetings__c,Actual_Meetings_Year_to_Date__c,(SELECT Status,WhatId from OpenActivities Where ActivityType Like 'Meeting') FROM Account where id=:t.WhatId];
integer count = 0;
for(OpenActivity oa:acc.OpenActivities)
{
count++;
}
System.Debug('-------Count'+count);
acc.Annual_On_Site_Meetings__c=count;
}
}
- sindhu@demo.com
- August 10, 2012
- Like
- 0
- Continue reading or reply
How to write a trigger on a Chatter post on the Account object
Hi Everyone!! I need a trigger on a Chatter post on the Account object that does the following: • If the hashtag “#request” is used in the post, the trigger creates a record in the Request__c custom object. • The Account ID is populated in Account__c • The Type__c field is “Other” It would be helpful if someone help me out in writing trigger on chatter post on "Account" object. Regards, Sindhu
- sindhu@demo.com
- July 30, 2012
- Like
- 0
- Continue reading or reply
How to execute the trigger on click of a custom button
Hi, I have written a trigger and is perfectly fine.I want this trigger to be executed when clicked on a custom button in Case object. Can anyone help me out with this??
- sindhu@demo.com
- July 25, 2012
- Like
- 0
- Continue reading or reply