The CreatorCon Call for Content is officially open! Get started here.

Function getValue is not allowed in scope sn_hr

Sirisha24
Tera Expert

 




12 REPLIES 12

Ankur Bawiskar
Tera Patron
Tera Patron

@Sirisha24 

did this not come in lower instances?

Any business rule is using getValue() in script?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Hi , 
Thanks for your response .

How i can find that ?

Thanks, 
Sirisha

@Sirisha24 

not a good practice to directly do in PROD

Search with business rule contains getValue()

Also you will have to check from any of the business rule script include is called and it has getValue() or not in it.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

SumanthDosapati
Mega Sage
Mega Sage

@Sirisha24 

In which script is that function present? Can you share that.

OR

Try to create a Global script include accessible from all scopes and move that function to that script include.

OR

Check out this article for more examples.

 

Accept the solution and mark as helpful if it does, to benefit future readers.
Regards,
Sumanth