- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2023 10:47 PM
Hi Community,
I got a requirement to track what users are searching on Workspace global search. There is OOB 'text_search' table which is storing all these records from global search.
We have a custom 'u_audit' table & have a after -insert BR which is on text_search table. So when record created in text_search table, it should create a new record in audit table. However BR is not working. Below is the BR:-
Note:- text_search is on global scope & custom 'u_audit' table is on Custom scope. Also same script when ran from background script is working & creating new audit record. This is weird. Can someone please help on this?
Thanks,
Ankita
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2023 11:47 PM - edited 09-13-2023 11:47 PM
Hi@Kavyashri Naval , the global search was the missing information for me - this is also not working in my PDI. It seems that this is internally built without executing Business Rules, I assume to avoid performance issues. My recommendation is here, that you should build a scheduled job (running once a hour), which collects all text_search entries created or updated (maybe update is not needed) last hour and insert them in u_audit.
Greets
Daniel
Please mark reply as Helpful/Correct, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2023 03:09 AM
Did you found the log entries in the System log - because I tried in my PDI and the BR was executed. How does "When to run" look?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2023 11:17 PM
No logs are not displaying in system log.
Below is the when to run condition:-
Have you used the same BR in your PDI?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2023 11:47 PM - edited 09-13-2023 11:47 PM
Hi@Kavyashri Naval , the global search was the missing information for me - this is also not working in my PDI. It seems that this is internally built without executing Business Rules, I assume to avoid performance issues. My recommendation is here, that you should build a scheduled job (running once a hour), which collects all text_search entries created or updated (maybe update is not needed) last hour and insert them in u_audit.
Greets
Daniel
Please mark reply as Helpful/Correct, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2023 12:57 AM
Thank you @Daniel Borkowi1 for your time & valuable response.