I have custom PipelineComponent written in C# with VS 2012 to send data to Microsoft Dynamics CRM from in-house database as part of ETL.
Has anyone figured out how to read either a package or project variable in custom component?
Script component supports passing of variable and it uses ScriptComponent Class
I tried
IDTSVariables100 variables = null; VariableDispenser.LockForRead("Package::CrmServiceAddress"); VariableDispenser.GetVariables(out variables); var serviceAddress = variables[0].Value; variables.Unlock();
The above code give me an Exception, however if I use "System::ContainerStartTime" it works
Haroon