You need to sign in to do that
Don't have an account?
sales4ce
Any way we could check if record is opened for first time after it got created.
Hi,
Is there any way we could check if the record is opened for first time after it got created?
Thanks in advance!
Sales4ce
Only way I can think is to have some javascript on the page layout (via VisualForce or SControl) that performs an update of the record to set a 'view count' or similar custom field.
The s-control version would be something like this, if updating a custom field called Viewed__c on an Opportunity:
Do you mean "opened for editing", or "opened for viewing"? (And I presume we're only talking about "opened via the UI" as opposed to exported, used by some other trigger, etc.) -Steve
infact, i have a use case which led me to think that way of seeing whether it is opened by a particular user or not.
The use case is:
we have a ideas portal and within an idea we have categories of the idea . for each category we have some users.
so, whenever an idea is posted in that category, we need to send an email alert to the users with in that category.
If the users assigned to that category do not open the idea for 2 weeks i need to send an email alert again.
Hence i was thinking if there is a way we could track when a record is opened for first time.
is there any better way we could do it for this use case?
Thanks,
Sales4ce
Hi Enth,
thanks for your reply!
can we check if a particular opened the record or not?
Thanks,
Sales4ce
You can find the number of counts "SELECT COUNT(Id)
FROM Account
WHERE LastViewedDate != null".
Please mark as it the best answer.
Thanks!