cancel
Showing results for 
Search instead for 
Did you mean: 

Import Life Cycle scripting

isaac_ariza_cruz
Participant
0 Kudos

Hello experts,

Currently, I'm doing some analysis with the different scripts availabe for Import Lifecycle.

According to the documentation, I have one question regarding any of them:

  • Pre-process row: This event allows access to inbound data before iBean has been created. However, is it also possible to modify record values at this event? Because I've been trying to do it using availables IAPIS with no successful results:

//Testing script to modify import record during importing:

doc_desc = import_record.getImportField("DOCUMENT_DESCRIPTION");

doc_desc.setValue("New description using PRE-PROCESS Script");

import_record.addImportField(doc_desc);


Due to previous code raise errors (telling that method calling import_record.addImportFied is incorrect), I've also tried without the last sentence but again, field is not modifed

Thanks in advance for the support and best regards,

Isaac

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

The import_record is an object of class CsvImportRecord

You could try using the setField(<name>,<value>) method to modify values.

Former Member
0 Kudos

Hi Padma,

Can you please let us know whether setField will work for XML data upload or if any other equalent method in XmlImportRecord calss?