setAbortAction is not working in Scoped application

shaik_irfan
Tera Guru

Hi,

I am currently on a Human Resource Core scope and on the Record producer General inquiry i have an option as Type of issue and if the selects the type of issue as Issue then i need to stop the creation of hr case..

 

In the Record producer i written script like below.

 

new sn_hr_core.hr_ServicesUtil(current, gs).createCaseFromProducer(producer, cat_item.sys_id);

if(producer.type_of_issue == 'issue')
{
current.setAbortAction(true);

}

find_real_file.png

 

@Ankur Bawiskar  can you please help me on this

30 REPLIES 30

Jaspal Singh
Mega Patron
Mega Patron

Hi Irfan,

 

There is already a solution for this in thread. Kindly give it a check.

And as you rightly pointed its application scope that needs some configuration at table level for accessibility.

Hi @Jaspal Singh 

 

I did gone through that link but unfortunately i unable to find much information and that is a wiki link which is not opening.

 

I am not sure, i already created cross scope and on the table i changed the Caller Access to None

 

find_real_file.png

 

 

 

 

This is the record producer and the target table is sn_hr_core_case so i created above cross scope for same table. 

 

Am i doing anything wrong ?

 

Anil Lande
Kilo Patron

Hi,

you need to Give cross-Scope access to any of the API which does not have cross scope access.

Navigate to Application cross scope access:

find_real_file.png

 

Create New record in your application scope:

find_real_file.png

 

Source Scope and Application should be your custom Application.

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

@Anil Lande 

 

thank you for the reply. I Already created that anil not sure what is restricting that. in the above email i pasted the screenshot which i created