Transform mapping - Load data - to load only newly added comments instead of whole thread, duplicate

maneesh3
Tera Contributor

Hi Team,

 

I am using Load data module to load records into Case table using excel sheet. For, additional comments it is always copying whole thread each and every time, and making data look more. Can it be possible to only copy newly added comments instead of adding always thread . Please help!

maneesh3_0-1752581665030.png

 

 

Thanks for support

10 REPLIES 10

maneesh3
Tera Contributor

Hi @Abhit ,

 

Please find attached sheet

You can split the additional comment with the empty line or based on the date and just extrat the first index.
try this with the source field script or transform script.

Sample:
source.u_additional_comment.split("\n")[1];

this will give you the second line from the additional comment.

Thanks
Abhit




Di Zhang
Tera Guru

Does Excel itself contain historical additional comments? If so, it is necessary to obtain the latest information in Transform map.

Hi @Di Zhang ,

 

yes, this excel contains historical comments,

so you should removed it in transform map before loading to target table.