The CreatorCon Call for Content is officially open! Get started here.

Transform script suggestion

sainath3
Mega Guru

Hello all,

I'm seeking your input on a scenario we're currently handling.

 

Current Flow

  • A third-party Talend application sends 5,000 records daily to a ServiceNow (SNOW) transform map.

  • In the onBefore script, we perform validation:

    • If any field is empty, we create an Incident (INC).

Sample Data

Product Number Source Reference ID State Private Key
2345LinkDin2345LinkDin#abcOpen987098
8987Noukri8987Noukri#efgResolved453672
1212Freshers1212Freshers#asdfOpen543878
 

As shown, the Source field can be one of: LinkDin, Noukri, or Freshers.

 New Requirement

  • Talend will continue sending records in the same format, but:

    • All records will have Source = Noukri.

    • Most fields will contain inaccurate data, except for the Private Key.

  • We need to:

    1. Extract the Private Key.

    2. Send it to another third-party application.

    3. If valid data is returned, update the record with correct Source and other fields in import set table.

    4. If data is not returned keep the same data in import set.
    5. Perform validation as usual.

 Proposed Solution

  • Use a Script Action triggered by the onStart script:

    • Fetch all 5,000 records from import set.

    • Send them to the third-party application.

    • Based on the response, update the Import Set records.

    • Let onBefore/onAfter scripts handle validation and transformation.

 Challenge

  • Processing all 5,000 records in the onStart script is time-consuming.

  • This may cause delays or stuck records in the Import Set, potentially cancelling the job.

 Request

Could anyone suggest a more efficient approach to handle this scenario? Open to ideas around batching, asynchronous processing, or architectural changes.

Thanks in advance!

 

Would you like me to help draft a technical solution proposal or explore optimization strategies for this workflow?

0 REPLIES 0