launch automatically the import that uses a connector data source
Hello,
I'm looking for a function to put in a extensibility rule that will be handled via a data management sequence to execute an automatic import in a workflow that uses a connector datasource:
This function : Dim batchInfo As WorkflowBatchFileCollection = BRApi.Utilities.ExecuteFileHarvestBatch(si, fixedScenario, systemTime, valTransform, valIntersect, loadCube, processCube, confirm, autoCertify, False) executes the harvest file, in my case i want it to execute the connector businessrule
Does anyone know how to do this? your help is much appreciated.
thank you
Here is a BRApi call that will trigger an Import from an import step that uses a connector rule. Note the SourceDataOriginTypes.FromDirectConnection argument which specifies that it is a direct connect.
Dim impProcessInfo As LoadTransformProcessInfo = BRApi.Import.Process.ExecuteParseAndTransform(si, si.WorkflowClusterPk, "", Nothing, TransformLoadMethodTypes.Replace, SourceDataOriginTypes.FromDirectConnection, True)