I have to add HR Profile table field 'scheduled start date' on Onboarding HR Service.

niveditakumari
Mega Sage

Hi, 

 

I have to add HR Profile table field 'scheduled start date' on Onboarding HR Service and that field should be editable. I have to dot walk in this field to Onboarding case. 

Can you please help me to get it. 

 

Regards, 

Nivedita

1 ACCEPTED SOLUTION

@niveditakumari Sorry for keep you waiting for so long. As discussed here is how you need to configure the ACL on HR Profile table.

Create following ACL on HR Profile Table and employment start date field

Screenshot 2023-05-10 at 11.46.33 PM.png

Here is how you need to configure the script.

Screenshot 2023-05-10 at 11.47.46 PM.png

 

Here is the script.

answer=false;
if(gs.getUser().isMemberOf('HR Tier 1')){ //replace HR Tier1 with your group name
	answer = true;
}

 

Here is how the dot walked field look on the HR Case form once the ACL is in place.

Screenshot 2023-05-10 at 11.53.17 PM.png

Hope this helps.

View solution in original post

35 REPLIES 35

Sandeep Rajput
Tera Patron
Tera Patron

@niveditakumari Could you please mention the business requirement here, I am not sure why would you like to put the scheduled start date on the onboarding service, instead you should put this field on the record producer and populate the case variables using it so that later on it can be reused in you script. 

 

If you wish to keep the field for reporting purposes then define a custom field on your sn_hr_le_case table and populate the same at the time of case creation.

 

Since the HR Service is case agnostic, it should never have a case specific field on it.

Hi @Sandeep Rajput

 

I have requirement On HR Service - "Onboarding" - add the HR Profile table field "Scheduled Start Date" and make editable. Dot walk field to Onboarding case. We have 'Scheduled Start Date ' on HR Profile table. 

Can you please help me to get it. 

 

Regards, 

Nivedita

 

 

@niveditakumari Here is my solution. 

 

As recommended previously, instead of adding the field to the HR Service form, you should add it on the case form. Following are the steps to add a field from HR Profile to the case form by simply dot walking on the form layout.

1. On the case form, configure the form layout.

Screenshot 2023-05-07 at 9.01.37 PM.png

2. Find the Subject Person HR Profile field in the available section in the slush bucket. Choose highlighted button to expand the Subject Person HR Profile fields.

Screenshot 2023-05-07 at 9.02.16 PM.png

From the Subject Person HR Profile fieldschoose Employment start date field.

Screenshot 2023-05-07 at 9.02.36 PM.png

Position this field appropriately on the hr case form.

Screenshot 2023-05-07 at 9.03.15 PM.png

This is how the fields looks finally on the case form.

Screenshot 2023-05-07 at 9.03.34 PM.png

 

Hope this helps.

Hi @Sandeep Rajput

 

I tried it but it is not working value is not setting on scheduled start date. 

 

niveditakumari_0-1683531795236.png

 

niveditakumari_1-1683531873820.png

 

Please help me to get that value. 

 

Regards, 

Nivedita