UI policy not working

manirathore
Tera Contributor

i am facing one issue. if i am submitting a request from service portal, a particular catalog ui policy is running. But if i am inserting a record in that table by importing xml, then that ui policy is not working.

7 REPLIES 7

Bert_c1
Kilo Patron

That's expected. See the documentation on 'Import XML' 

 

https://www.servicenow.com/docs/bundle/vancouver-platform-administration/page/administer/development...

 

while that only mentions business rules don't run and the instance cache is not updated. Other features don't run.

Anand Kumar P
Giga Patron
Giga Patron

Hi @manirathore ,

 

Ui policy will always work at form level .

 

Create Data policy to work at server side while importing xml.

 

If my response helped, please mark it as the accepted solution and give a thumbs up👍.
Thanks,
Anand

but i cannot run any script in data policy

What is usecase and with admin profile are you importing xml?

XML import Ignores any business rules that normally apply to the table.