IntegrationHub OnBefore script not working

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2025 08:32 AM
Hi all,
I am using IntegrationHub to take an Excel file and transform the data to the Contract, Asset, and Assets Covered tables.
On the integration, I have a simple OnBefore script where if the Asset Type column on the Excel document is "Workstations" or "Notebooks", set the PO Number to "94904", but it does not work. I've looked at documentation for similar tasks and tried various iterations of this script but can't find a reason why this wouldn't work.
Why might this be?
(function onBefore(source, target, importLog) {
if(source.u_asset_type == "Workstations" || source.u_asset_type == "Notebooks")
source.u_po_number = '94904';
})(source, target, importLog);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2025 09:10 AM
Hi @DylanBlumenberg ,
You are assigning to source.u_po_number. Is that be target field.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2025 09:14 AM
Hi @pavani_paluri, I think I need clarification on how these scripts affect the data. In an OnBefore script, is the target a staging table or would the target be the final table that the data is being imported to, in this case, ast_contract?