public void PI_Init(int nToolID, AlteryxRecordInfoNet.EngineInterface engineInterface, XmlElement pXmlProperties) { engine = engineInterface; toolId = nToolID; output = new AlteryxRecordInfoNet.PluginOutputConnectionHelper(nToolID, engineInterface); config = pXmlProperties["Configuration"]; mdx = config["mdx"]?.InnerText ?? ""; dataSource = config["dataSource"]?.InnerText ?? ""; catalog = config["catalog"]?.InnerText ?? ""; }
// Called by Alteryx to initlialize the plugin with configuration info. public void PI_Init(int nToolID, AlteryxRecordInfoNet.EngineInterface engineInterface, System.Xml.XmlElement pXmlProperties) { // Save the incoming information. m_nToolId = nToolID; m_engineInterface = engineInterface; m_xmlProperties = pXmlProperties; // Create our PluginOutputConnectionHelper that will be used to manage // any outgoing connections. m_outputHelper = new AlteryxRecordInfoNet.PluginOutputConnectionHelper(m_nToolId, m_engineInterface); m_attachmentOutputHelper = new AlteryxRecordInfoNet.PluginOutputConnectionHelper(m_nToolId, m_engineInterface); }