MethodNotAllowedException getValue function not allowed in scoped app

wakespirit
Kilo Guru

Dear all,

I am running a Business Rule on notify_call table which have the below part of the script which use Dot walking to reach reference fields.

 if(session.notify_participant.notify_conference_call.getValue(u_iscascadevalide)=="true") 

The problem I am facing is that I get an MethodNotAllowedException methode saying that getValue is not allowed in scoped application.

How to change my script to make it work and avoid using getValue method ?

Thanks for help

regards

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

I believe you want to check whether the value is true or not; also I believe session is glide record object of the current record

 if(session.notify_participant.notify_conference_call.u_iscascadevalide)

just check field name is correct. 

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

I believe you want to check whether the value is true or not; also I believe session is glide record object of the current record

 if(session.notify_participant.notify_conference_call.u_iscascadevalide)

just check field name is correct. 

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader