Actually I want to get a value of the hidden field while cloning.. And as part of standard funtionality hidden fields wont be cloned is what I came to know. So I am sending that value as a Url and want to get that value after inserting the cloned record.
As you are in a trigger, you are running in the system context. This means that field level security for the current user isn't taken into account. Do you have a way to determine the original record? If so you can simply retrieve it and copy the hidden fields.
Triggers don't have the concept of a URL - they are detached from the page that the user is on.
Can you explain a little about what you are trying to achieve here?
Actually I want to get a value of the hidden field while cloning.. And as part of standard funtionality hidden fields wont be cloned is what I came to know. So I am sending that value as a Url and want to get that value after inserting the cloned record.
As you are in a trigger, you are running in the system context. This means that field level security for the current user isn't taken into account. Do you have a way to determine the original record? If so you can simply retrieve it and copy the hidden fields.