Applying query on for Script Include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2025 09:28 AM
I want to apply the encoded or addQuery to script, The script is targeting the HRprofile table, ask is-
If Hr Profile has not been inactive from last 90 days before the employment start date.
Employment start date is a custom field on HR Profile table.
I tried using this query ;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2025 09:38 AM - edited 01-03-2025 09:45 AM
Hi @SUser1234 ,
Yes you have to use encoded query for this . Test it in Hr profile list view check valid records you are getting then use it in script.
grProfile.addEncodedQuery('employment_start_dateRELATIVELE@dayofweek@ago@90');
If my response helped, please mark it as the accepted solution ✅ and give a thumbs up👍.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2025 09:48 AM
But how are we comparing to last login?
I mean not inactive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2025 10:41 AM
if you want active then add
grProfile.addEncodedQuery('active=true^employment_start_dateRELATIVELE@dayofweek@ago@90');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2025 11:01 AM
I am talking about if user is not inactive from last 90 days before the employment start date