Get the record visitor details using hidden Screen Flow #inSalesforce

Get the record visitor details using hidden Screen Flow #inSalesforce


Create a custom object Record Visitor

Fields: Name(text), Id(text), User(lookup to User obj)


Create a screen flow and name it Hidden screen for visitor count

Create a new input variable: record Id (text)

Create a formula variable to get the record Id prefix using record id like recordId Prefix: (text) LEFT({!recordId},3)


Get:

Entity Definition object

criteria:

KeyPrefix equals recordIdPrefix


Create:

Record Visitor:

Name__c: getEntity.Master...

Id__c: recordId

User__c: $User.Id


Add a blank screen at end


Activate the flow


Add the flow in the lightning record detail page for the object you want to start tracking


View all tracking records in the custom object, but if you want to see it on the record level then you can create an LWC component to show it on the record level









                                  Visual: https://www.youtube.com/watch?v=rgioByjg1dM

Comments