Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Custom Pipelinecomponent and Project/Package Variable

$
0
0

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


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>