You need to sign in to do that
Don't have an account?
Patrick Foy
Create Event From Custom Object
I have a custom object called Service Contract. The object contains the following fields Effective Date (date) and Calls Per Year (number) End Contract (checkbox).
When a user sets up the service contract for a customers machine the customer will decide how many times per year they want the machine serviced.
For example: Starting April 1,2017 I want my machine serviced 2 times per year.
I need the event/reminder to tell the user on October 1 and April 1 to create a work order untill End Contract is checked.
I have no idea how to work this out. My expirence with Apex is null, I do have other programing expirience and want to learn how to do this just really need some help.
I had been advised previously to create a custom setting which I have but do not know how to proceed.
When a user sets up the service contract for a customers machine the customer will decide how many times per year they want the machine serviced.
For example: Starting April 1,2017 I want my machine serviced 2 times per year.
I need the event/reminder to tell the user on October 1 and April 1 to create a work order untill End Contract is checked.
I have no idea how to work this out. My expirence with Apex is null, I do have other programing expirience and want to learn how to do this just really need some help.
I had been advised previously to create a custom setting which I have but do not know how to proceed.
here is the sample for Creating event based on your services Contract entered by custome in salesfroce.
this is not full code.
its sampel code how you have to process further. ans after create the event you need to configure work flow to send the emai alert for that spacific user.
this code used to create calender event when the services contract is inserted.
Hope this will give you some idea how you have to process further.
Thanks
karthik
All Answers
Step 1:
Make sure which mode of communication you want to send to user to identifiy for those dates. Ex:(Email alert or Task or event or just remainder)
we can use point click using workflow rule or process builder
Or
you have to write a apex code most case trigger for this kind of situation.
decied the best thig thats suites your Org and let me know go further process (coding or point&click ) .
Hoep this will clear.
Thanks
karthik
For Instant communication:
Skype: rajam.karthik
HP: 13392359597
here is the sample for Creating event based on your services Contract entered by custome in salesfroce.
this is not full code.
its sampel code how you have to process further. ans after create the event you need to configure work flow to send the emai alert for that spacific user.
this code used to create calender event when the services contract is inserted.
Hope this will give you some idea how you have to process further.
Thanks
karthik