+ Start a Discussion
Brandi GrahamBrandi Graham 

APEX trigger and calendars......

I need a little assistance with APEX triggers, I have created a request and email approvals and I am trying to get the request to appear on a shared calendar in yellow and change to green or red when approved or denied. Does anyone have any APEX training that they could assist me with. This is my first APEX project.Thanks in advance, Brandi
Cyrus TalladenCyrus Talladen
In this case, what I would do is to create a lookup relationship between the Request and Email approvals.  There are methods which can be used to set the value of the Request status in the calendar after checking the status of the approval process.  See the documentation:
 https://www.salesforce.com/developer/docs/api/Content/sforce_api_objects_processinstance.htm


Cyrus Talladen
CRM Engineer
www.levementum.com