function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
cruiserDancruiserDan 

First attempt at a trigger

Hello, until now I've found ways to use workflow rules to update fields but for this scenario I think I need to build a trigger. I'm new to Apex code too.

 

I have a survey form from a third party app that creates new survey results in a survey object.  One of the fields captured is an order ID from an Order object that the survey relates to. I'd like to record when a survey is completed in the order record, mainly to display or filter it in a view. I've created a date/time field in the order object and want to trigger the current time to be entered when a new survey is created where the order ID's are the same. Can anyone please help with the apex code or trigger code here. Thanks in advance.

Shreya...Shreya...

If you post your requirement in dept then might be we help you...
Right now we are not able to understand your  requirement