I think it needs C# code here which I’m a bit lost with so any help would be appreciated… The doco actually says that the pre-processing function is in C# you see…
I am importing user items from a SAP export (excel format) and I need to derive a FULL NAME column from the import. The import has the columns “First Name” and “Last Name”.
Normally I’d take care of this via the import/export rule and do an expression (which does work using the expression [First Name] + ‘ ‘ + [Last Name]). However, doing it this way means that I can’t make the ALTIRIS name of the record the derived full name. So, I need to take care of this as a data source rule so that it is presented to the import/export rule as a Full Name from the source.
Looking at the data source (which is an excel spreadsheet), clicking on pre-process import data gives me some sample code but all I need to do as part of this pre-processing is to create a new column (let’s call it “Full Name” and it is simply derived of [First Name], a space, followed by [Last Name]).
Anyone keen to have a stab at this?
You may ask why I don’t do this via a CMDB rule. Problem with CMDB rules is that the data needs to be in there first. I was thinking about using task server to run the import first, followed by the CMDB rule immediately afterwards to change the display name to be first name + last name, but it’s not as elegant and might cause some issues in relation to subsequent imports, because the resource name lookup key is required for the import, so future imports won’t work basically…