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
HFutiHFuti 

Register the object data when you see the data

Hello community.

I would like to ask an question about Apex.
I want to create an function with Apex but I can not imagine how to create.

The function is as following,

When someone sees the data(e.g. Account data), another object data is registered.

Perhaps this is can be realized with Salsforce Shield but I don't wnat to use this option.

If someone knows good way,could you tell me, please?
VinayVinay (Salesforce Developers) 
Hi,

You can try checking with 'Ciphercloud' as an alternative,  I suggest you to check with salesforce shield and I don't think we have any other option for this.

https://www.jitendrazaa.com/blog/salesforce/considerations-and-best-practices-before-enabling-salesforce-shield-platform-encryption/

Hope this helps...

Thanks,
Marcos LasoMarcos Laso
A dirty way of do it, is to add a Lightning component to the Account (or whatever) Lightning page (flexipage) that in first load inserts a record on the database. It does not cover accesses to the records via API, but for no-api users, it should work.

Regards!