Any way of knowing the source of HR case.

Drishti
Tera Guru

Hi Community,

Good Day!

Is there any way of knowing where HR case is created from Agent Workspace- Create HR case. I have to set source field if it is created from integration, inbound action , HR case creation form.

For integration and Inbound action it is clear, but how can we determine whether HR case is created from Agent workspace- Create HR case page.

Advance thank you for help!

 

3 REPLIES 3

Kohei Tominaga1
Tera Expert

KoheiTominaga1_0-1681354114221.png

If OOTB choice does not meet your requirement, you can add the choice in the source field.

Community Alums
Not applicable

Hi @Drishti ,

Unfortunately, there is nothing OOTB to determine  if the case was created from HR agent workspace as of now.

The Source field wouldn't make sense here as it's specifically used for HR integrations sources not workspaces.

 

Vikrant Vashish
Tera Contributor

Hi Drishti,

 

You can try below approach in before insert BR :

 

var awURL = gs.action.getGlideURI();
    if(awURL.toString().indexOf('api/now/ui/ui_action/5b32b8f2734233000afabd49faf6a7d5?api=api&sysparm_sys_id=-1&') > -1){
        // Do your thing
    }
 
If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!
Vikrant