Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Hi Friends,
Can we assign events to calendars in salesforce and make it vsible on the calendar.Quick response will be greatly appreciated.
Thanks,
Trick
Can somebody answer?
I assume you mean in Apex Code? Just assign the calendar's ID to the OwnerId.
Yes you can assign New Event in the Calendar, you have to put/ add an Apex Trigger on the Object from which you want to update the Calendar Event
E.g: Apex Trigger as folows:
trigger UpdateTEevent on New_Object__c (after insert) {List <Event> TENewEvents = new List <Event>();for (New_Object__c TEevent : Trigger.new) { Event te = new Event(); te.StartDateTime = TEevent.Start_Process_By__c; te.EndDateTime = TEevent.Start_Process_By__c; te.OwnerId = TEevent.Implementing_Person__c; TENewEvents.add(te); } insert TENewEvents;}:
In the above Code:
1 UpdateTEevent : is the Name of the Trigger
2 New_Object__c : is the Custom Object
3 Start_Process_By__c
& .Implementing_Person__c : is the Custom Field in the Custom Object
Hope this resolves your problem
Warm Regards
Can somebody answer?
Thanks,
Trick
I assume you mean in Apex Code? Just assign the calendar's ID to the OwnerId.
Yes you can assign New Event in the Calendar, you have to put/ add an Apex Trigger on the Object from which you want to update the Calendar Event
E.g: Apex Trigger as folows:
trigger UpdateTEevent on New_Object__c (after insert) {
List <Event> TENewEvents = new List <Event>();
for (New_Object__c TEevent : Trigger.new)
{
Event te = new Event();
te.StartDateTime = TEevent.Start_Process_By__c;
te.EndDateTime = TEevent.Start_Process_By__c;
te.OwnerId = TEevent.Implementing_Person__c;
TENewEvents.add(te);
}
insert TENewEvents;
}:
In the above Code:
1 UpdateTEevent : is the Name of the Trigger
2 New_Object__c : is the Custom Object
3 Start_Process_By__c
& .Implementing_Person__c : is the Custom Field in the Custom Object
Hope this resolves your problem
Warm Regards