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.

Work notes are not populated on the Form while transforming data

Ashwini Jadhao
Giga Guru

Hi,

I am importing data from london to madrid by transform map.All the data is imported properly except Work notes.

Issue is on the tables list view I can able to see work notes data but when I open the record then the work notes field is empty.

1 ACCEPTED SOLUTION

try it by onBefore transform script. 

 

eg:

var gr= new GlideRecord('your target table');

gr.addQuery('number',source.<field name>); // here you will add filter so you can identify the record

gr.query();

if(gr.next()){

gr.work_notes= source.<work note field >;

gr.update();

}

View solution in original post

12 REPLIES 12

Ashwini Jadhao
Giga Guru

directly by field mapping

 

try it by onBefore transform script. 

 

eg:

var gr= new GlideRecord('your target table');

gr.addQuery('number',source.<field name>); // here you will add filter so you can identify the record

gr.query();

if(gr.next()){

gr.work_notes= source.<work note field >;

gr.update();

}

Hi @Harsh Vardhan and @Ashwini Jadhao ,

I am importing the project records to pm_project table from the project template. This is first time insert to pm_project table and there are no Project number created yet. Once I import the data via import set the records will get the project number value.

 

All the fields are imported successfully, except the work notes field. That's how I ended at this post.

I see the data related to my records in sys_journal_field table.

I am not using any script , I have done direct field mapping only.

Talya_0-1672197579057.png

 

My source table is u_latest_project_import and target table is pm_project.

In the script you have provided, 

gr.addQuery('number',source.<field name>); // here you will add filter so you can identify the record

what field name should I provide?

 

I am new to ServiceNow. Pleas help me , how to populate data in work notes field of Project form.

 

Thanks,

Talya