- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2020 09:10 AM
We have a requirement as part of Separation process to collect input from an HR as to whether the subject person on the HR case should be rehired or not. There is a rehire flag on HR profile. The HR do not have access to the backend they only login to the portal.
I tried using employee form but this form should uniquely map to a record, i cannot map the response from HR to the profile of subject person's HR profile.
Is there a way to get response from HR from the portal and update the "Rehire" flag on the HR profile of subject person on the HR case?
Best
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2020 09:28 AM
It might be a timing issue. Can you try set the business rule to Async? Or order to 1001?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2020 05:34 AM
It's helpful, but the query to assessment result always return 0
ar grSurveyResults = new GlideRecord('asmt_metric_result');
grSurveyResults.addQuery('instance.sys_id', current.survey_instance);
grSurveyResults.query();
gs.info("count " + grSurveyResults.getRowCount());
and it never goes inside while loop
while (grSurveyResults.next())
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2020 05:54 AM
Can you try change it to this:
var grSurveyResults = new GlideRecord('asmt_metric_result');
grSurveyResults.addQuery('instance.sys_id', current.getValue('survey_instance')+'');
grSurveyResults.query();
gs.info("count " + grSurveyResults.getRowCount());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2020 07:49 AM
I tried the below 4 combination and it still does not work
//grSurveyResults.addQuery('instance', current.survey_instance);
//grSurveyResults.addQuery('instance.sys_id', current.survey_instance);
//grSurveyResults.addQuery('instance', current.getValue('survey_instance'));
//grSurveyResults.addQuery('instance.sys_id', current.getValue('survey_instance'));
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2020 07:53 AM
Can you try "
grSurveyResults.addQuery('instance.sys_id', current.getValue('survey_instance')+'');
so with the ' +"" '
Can you also share a screenshot? You are doing it on the HR Task right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2020 08:05 AM