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
Mani Kandan01Mani Kandan01 

How to get date field inserted value using apex trigger before insert

Hai all hope everyone fine.

I need to get the input value of Date field from opportunity object using apex trigger before insert. (No need to insert record).

hope someone will help me. 

Thank You 

SwethaSwetha (Salesforce Developers) 
HI Raman,
Does this help https://developer.salesforce.com/forums/?id=9060G000000BeGBQA0
https://salesforce.stackexchange.com/questions/65036/a-trigger-to-get-a-date-from-a-detail-object-and-update-it-on-the-parent-object
Thanks
Mani Kandan01Mani Kandan01

Hi thank you for the link. 


I want to get entered value in the field before it is inserted.. 

leonardokipperleonardokipper
Hi Kothanda.

What's the objective behind that? 
You want to get the date value when an opportunity is inserted and than change this same field? You can accomplish that with a worfklow rule.
Or you need to perform more complex rules based on the value of this field?
Mani Kandan01Mani Kandan01
I want to check the condition Using the date so need to get the input value(date) going to be insert.