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.

service catalog total price calculation from multi set variables

Srini Panduri
Kilo Expert

Hello All

     With one of requirement I am building service catalog. total price needs to calculate from muti variable set fields.

     I am seeing the issue for below call  

      alert(JSON.parse(g_form.getValue('multi_variable_set_name'));

      I am seeing null all the time , do i need add any property to get that mvs values in json format  to calculate the price.

      Once total calculated ,   How to reset the catalog item price as below is not working                                  

       g_form.setValue('price',"total_cost");

Thank you in advance.

Regards

Srini

 

 

 

 

 

      

 

  

 

 

1 ACCEPTED SOLUTION

I doubt you can set the price dynamically based on MRVS

You can check this link

Using variables for price setup

Regards
Ankur

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

View solution in original post

8 REPLIES 8

Hi,

is price a variable on your catalog item?

OR is this a field on RITM/Catalog Item record which you want to update

Regards
Ankur

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

Hi Ankur

  I donot have price variable  seperately, this is RITM/catalog item price that i want to update.

 

Regards

Srinifind_real_file.png

I doubt you can set the price dynamically based on MRVS

You can check this link

Using variables for price setup

Regards
Ankur

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

RiteshSwarnakar
Giga Guru