when I submit the record producer the data saved capture wrong

jay97
Tera Contributor

Hello Guys,

 

on filling the RPScreenshot 2022-12-14 222341.png

after submiting RP

Screenshot 2022-12-14 221946.png

 

When I submit the record producer I am seeing different data captured on the reocord procedure which I saw while on submiting How Can I trace ?

 

On RP, one field Business Service which get data from server-side script based on change of impacted product on the RP.

 

it is coming correct but when I submit the RP but when I see submitted RP records Business service values is being changed.

 

How Can I trace it ? what goes wrong while submitting ?

please help with debugging suggestion

1 ACCEPTED SOLUTION

  1. My suggestion would be to change the 'Business Service' variable to Reference type. If you do so the script to fetch the Business Service from the backend should return sys_id.
  2. And make sure the mapping is present and correct.
  3. The field name and variable name should be the same.

If you still facing issues suggest you share your script.

 

Regards,

Reshma

**Please mark my answer correct or helpful based on the impact**

 

View solution in original post

5 REPLIES 5

reshmapatil
Tera Guru

Hi Jay,

Have you put log in RP script.

  • Check the value on the list view. If values are different on list and form then it might be because of CS.
  • If values are same then because of BR.

 

You can also check the Application files [sys_metadata] table with filter keyword containing 'Business Service' and the class is BR/CS.

 

Can you share screenshot of your script.

 

Regards,

Reshma

**Please mark my answer correct or helpful based on the impact**

jay97
Tera Contributor

Thank you I have added the images on the original post please check. but what is use of  Application files [sys_metadata]  . I am not aware . please tell me.

Check out the below link for Application Files:

https://docs.servicenow.com/bundle/tokyo-application-development/page/build/applications/concept/c_A...

 

Actually, it contains all our scripts, ACLs, other configurations.

  1. My suggestion would be to change the 'Business Service' variable to Reference type. If you do so the script to fetch the Business Service from the backend should return sys_id.
  2. And make sure the mapping is present and correct.
  3. The field name and variable name should be the same.

If you still facing issues suggest you share your script.

 

Regards,

Reshma

**Please mark my answer correct or helpful based on the impact**