I'm attempting to create my first data flow component that will take an input address run it through a PAF api and spit out the correctly formatted address and the original input columns from a file source or db table.
I need to supply the source input address in a particular format, so I need the user to map the source input columns to specific custom input columns. I was able to create custom input columns using the input.ExternalMetadataColumnCollection and this worked. However I have now been told that I need to provide the option of including all available columns in the source file as output columns now.
I have tried creating additional input columns which appear in the Column Mapping tab but I don't all all the source input columns available. The below is what I have tried so far. Any advice would be greatly appreciated. So my question is how do I add additional custom input columns as well as including all source columns?
IDTSExternalMetadataColumnCollection100 externalInput = input.ExternalMetadataColumnCollection;
externalInput.IsUsed = true;
IDTSExternalMetadataColumn100 externalInputColumn = externalInput.New();
externalInputColumn.Name = constInputAddressLineOne;
externalInputColumn.DataType = DataType.DT_WSTR;
externalInputColumn = externalInput.New();
externalInputColumn.Name = constInputAddressLineTwo;
externalInputColumn.DataType = DataType.DT_WSTR;