Collect employee input

rajeeshraj
Tera Guru

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

 

1 ACCEPTED SOLUTION

It might be a timing issue. Can you try set the business rule to Async? Or order to 1001?

View solution in original post

14 REPLIES 14

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()) 

 

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());

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'));

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?

I tried with +'', not working, i have attached screen shotfind_real_file.png