Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Calculation Type field not appearing on form or XML

Elena Pomana
Tera Guru

Hello!

 

My requirement is a simple one.

Created a true/false field on the dms_document table and add a calculated value (formula) to it.

 

The problem is that when I check the Calculated field, the Calculated type field isn't appearing (San Diego version).

ElenaPomana_0-1674641360739.png

I checked on my PDI and it appears just fine (Tokyo version).

ElenaPomana_1-1674641462109.png

 

Am I missing something?

 

Thank you,

Elena

 

 

 

 

 

1 ACCEPTED SOLUTION

Elena Pomana
Tera Guru

@Ankur Bawiskar 

 

Yes, but I have created a script instead of formula and it works.

View solution in original post

6 REPLIES 6

Ratnakar7
Mega Sage

Hi @Elena Pomana ,

 

Can you check the below UI policy :

 

UI Policy : Show calculation for calculated fields , there should be UI action for virtual_type (calculation_type).

Ratnakar7_0-1674645310032.png

 

Thanks,

Ratnakar

Hello! 

 

Thanks for the answer!

On the client's platform this is how the UI Policy looks:

ElenaPomana_0-1674646458948.png

On the PDI it looks just like yours.

 

Aren't those UI Policies updated by Servicenow versions? Seems weird that they differ.

 

Ratnakar7
Mega Sage

Hi @Elena Pomana ,

 

You can add UI Policy Action for 'virtual_type' filed to make visible on calculated checked.

 

Also, Please check Upgrade logs if there's any upgrade changes from ServiceNow, with the below link:

https://<instance_name>.service-now.com/sys_upgrade_history_log_list.do

and search for "sys_ui_policy_611a82e3c0a8016600f7d652de8944cc" like below:

 

Ratnakar7_0-1674648904362.png

I hope this solves your issue.
Mark this as Helpful / Accept the Solution if this clears your issue.

 

Thanks,

Ratnakar

 

 

 

 

Hi!

 

Thanks for everything. I did check the upgrade logs but nothing is changed:

ElenaPomana_0-1674649847233.png

I tried to add the UI Policy action for 'virtual_type' but the field doesn't exist.