The Zurich release has arrived! Interested in new features and functionalities? Click here for more

When we gr.getValue(field _name) return null values for empty columns , How to resolved this issue?

RAM75
Tera Contributor

When we gr.getValue(field _name) return null values for empty columns, How to resolved this issue?

Scenario: we connected two snow systems when creating change requests automatically another system also creates change requests, here sending empty values but their system showing in their columns null, How to resolve this issue.

I am sending below like this:

  var str = {
"uuid": uuid, //Static Value : Same for all instance//"8",
"inputs": { 

"implementation_plan": "" + current.getValue('implementation_plan') + "", // getting null value
"justification": "" + current.getValue('justification') + "",   // getting null value
"risk_impact_analysis": "" + current.getValue('risk_impact_analysis') + "", // getting null value
"test_plan": "" + current.getValue('test_plan') + ""  // getting null value

}

};

or gr.implementation_plan =  current.getValue('implementation_plan')

 

Thanks

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Have you tried something like:

var justification = current.getValue('justification') || '';

And then in your inputs, using justification.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020, 2021 ServiceNow Community MVP
2020, 2021 ServiceNow Developer MVP

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

1 REPLY 1

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Have you tried something like:

var justification = current.getValue('justification') || '';

And then in your inputs, using justification.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020, 2021 ServiceNow Community MVP
2020, 2021 ServiceNow Developer MVP

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn