Jump to content
  • 0

Insert Data Into Log File (Table)


bbeshlian

Question

Hello,

How would I capture the User ID from my Authorized User Table to insert into a log file (table)? When an authorized user Inserts, Updates or Deletes a record to table I need to capture their ID and the Time. I know how to set up the trigger for this. My issue is capturing the logged in User ID.

Thanks,

Bill 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Yes, this would be doable via trigger. 

As you mentioned, you know how to set the trigger up. 

Screenshot_1.png.6459a719923064674c90b559b51e61ac.png

It should be something like this right? But you need to pass a value from the inserted to the log file table.

 

How about implementing this to your table?

https://howto.caspio.com/authentications-and-connections/authentication/stamp-a-record-with-user-profile-data/

https://howto.caspio.com/tech-tips-and-articles/common-customizations/stamp-the-time-url-or-ip-address-to-new-and-updated-records/

Then you can easily pull up that stamped user ID and pass it via trigger?
Does that make sense?
Hope this helps :lol:

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...