Interface IImportDefinitionStep
The system entity for an import defintion step, which belongs to an import definition
See https://help.lemonedge.com/import-definitions/ for more information
Inherited Members
Namespace: LemonEdge.API.Entities.DataIntegration
Assembly: LemonEdge.API.dll
Syntax
[EntityDefinition(EntityID.ImportDefinitionStep, "dbo.LT_ImportDefinitionSteps", "ImportDefinitionStep", LabelColumn = "Name", IsStandingDataEntity = false)]
[DefaultEntityIcon(ImageType.Sequential)]
[EntityIndex(Name = "ImportSteps", ColumnNames = new string[] { "ImportDefinitionID" }, IndexOrder = new IndexOrder[] { IndexOrder.Ascending }, IsClustered = false, IsUnique = false)]
public interface IImportDefinitionStep : IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties
Properties
ByPassProcessors
Indicates when importing the data the system should by pass creating processors to process set data. Improves performance for large datasets, and also can be used where you want the data (such as gl postings) to be precisely what the source system was without additional transaction code processing - use with caution.
Declaration
[EntityProperty(SQLType.Bit, false, "0")]
[EntityDescription("Indicates whether when saving this item the system should bypass using processors. Warning: This can save time if you are confident about the data state, but can leave data in an inconsistent state if there are integrity issues.")]
bool ByPassProcessors { get; set; }
Property Value
Type | Description |
---|---|
bool |
ByPassValidation
Indicates when importing the data the system should by pass all validation. Improves performance for large datasets, and also can be used where you want the data (such as gl postings) to be precisely what the source system was without additional validation.
Declaration
[EntityProperty(SQLType.Bit, false)]
[EntityDescription("Indicates whether when saving this item the system should bypass the validation. Warning: This can save time if you are confident about the data state, but can leave data in an inconsistent state if there are integrity issues.")]
bool ByPassValidation { get; set; }
Property Value
Type | Description |
---|---|
bool |
Context
Indicates how the import lines will be processed. Isolated - The context is new and only exists for this import step. Shared - the context is shared across multiple steps so saves aren't committed untill the end.
Declaration
[EntityProperty(SQLType.SmallInt, false)]
[EntityDescription("Indicates how the import lines will be processed. Isolated - The context is new and only exists for this import step. Shared - the context is shared across multiple steps so saves aren't committed untill the end.")]
[Required]
ImportDefinitionStepContext Context { get; set; }
Property Value
Type | Description |
---|---|
ImportDefinitionStepContext |
DataMappingID
Links to IDataMapping. Holds any data mapping that should be applied to the import file in order to translate it for processing.
Declaration
[EntityProperty(SQLType.UniqueIdentifier, true)]
[EntityRelationship(EntityID.DataMapping, "ID", SingleJoinType.ZeroToOne, "Data Mapping", "Used In Import Definition Steps", DeleteWithRelationship = false, PartOfParentSet = false, InheritPermissions = false, LinkToItemInSet = true)]
[EntityDescription("Holds any data mapping that should be applied to the import file in order to translate it for processing.")]
Guid? DataMappingID { get; set; }
Property Value
Type | Description |
---|---|
Guid? |
Enabled
Indicates if this step should be processed when running the import definition
Declaration
[EntityProperty(SQLType.Bit, false)]
[EntityDescription("Indicates whether this step is enabled or not.")]
bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
FormulaForImportStorageRelativeFilePath
This is the formula to use to get the path/name of a file on the Import Definition Storage Type to poll for
Declaration
[EntityProperty(SQLType.NVarChar, true)]
[EntityDescription("This is the formula to use to get the path/name of a file on the Import Definition Storage Type to poll for.")]
string FormulaForImportStorageRelativeFilePath { get; set; }
Property Value
Type | Description |
---|---|
string |
ImportDefinitionID
[Key] Links to IImportDefinition. The parent import defintion this step belongs to
Declaration
[EntityProperty(SQLType.UniqueIdentifier, false)]
[EntityRelationship(EntityID.ImportDefinition, "ID", SingleJoinType.One, "Import Definition", "Steps", DeleteWithRelationship = true, PartOfParentSet = true, InheritPermissions = true)]
[RequiredNoDefaultIDValidation]
[EntityKeyProperty]
Guid ImportDefinitionID { get; set; }
Property Value
Type | Description |
---|---|
Guid |
ImportEmbeddedFile
If the data to import is hardcoded into the step itself (such as for creating test imports) this holds the file to import.
Declaration
[EntityProperty(SQLType.NVarChar, true)]
[EntityDescription("Embedded Static Import File.")]
string ImportEmbeddedFile { get; set; }
Property Value
Type | Description |
---|---|
string |
ImportEmbeddedFileType
If the data to import is hardcoded into the step itself (such as for creating test imports) this indicates what type of import file it is.
Declaration
[EntityProperty(SQLType.SmallInt, false)]
[EntityDescription("The type of file to import from the embedded text.")]
ImportDefinitionEmbededTextImportType ImportEmbeddedFileType { get; set; }
Property Value
Type | Description |
---|---|
ImportDefinitionEmbededTextImportType |
ImportSQLWrapperID
Links to ISQLWrapper. Indicates the sql wrapper [more info] to run to retrieve the results to import. These can be custom sql stored procedures that call 3rd party databases, and can be called from LemonEdge using ISQLWrapper.
Declaration
[EntityProperty(SQLType.UniqueIdentifier, true)]
[EntityRelationship(EntityID.SQLWrapper, "ID", SingleJoinType.ZeroToOne, "SQL Wrapper", "Used In Import Definition Steps", DeleteWithRelationship = false, PartOfParentSet = false, InheritPermissions = false, LinkToItemInSet = true)]
[EntityDescription("Retrieves the results of a sql query and uses them as the basis for importing.")]
Guid? ImportSQLWrapperID { get; set; }
Property Value
Type | Description |
---|---|
Guid? |
ImportSQLWrapperParams
The parameters to use when running the specified sql query for importing.
Declaration
[EntityProperty(SQLType.NVarChar, true)]
[EntityDescription("The parameters to use when running the specified sql query for importing.")]
string ImportSQLWrapperParams { get; set; }
Property Value
Type | Description |
---|---|
string |
ImportStorageRelativeFilePath
Indicates the path/name of a file on the Import Definition Storage Type to poll for
Declaration
[EntityProperty(SQLType.NVarChar, 500, true)]
[EntityDescription("The file to import located relative to the specified storage details.")]
string ImportStorageRelativeFilePath { get; set; }
Property Value
Type | Description |
---|---|
string |
LastImported
Indicates the last time this step was run. Can be used in formulas to do incremental dated imports.
Declaration
[EntityProperty(SQLType.DateTimeOffset, true)]
[EntityDescription("Indicates the last time this step was run. Can be used in formulas to do incremental dated imports.")]
DateTimeOffset? LastImported { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
Name
The unique user friendly name for this step
Declaration
[EntityProperty(SQLType.NVarChar, 500, false)]
[EntityDescription("The name of this step in the import definition.")]
[Required]
string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
PollingTimeoutInSecs
If the step is using an Import Storage Relative File, this number indicates how long the system should wait to see if the file exists. After this period (in seconds) the system will log an error.
Declaration
[EntityProperty(SQLType.Int, true)]
[EntityDescription("If the import type is a file in storage, this indicates whether or not to poll for the file, and if so how long to timeout (in seconds) when polling for the file.")]
int? PollingTimeoutInSecs { get; set; }
Property Value
Type | Description |
---|---|
int? |
Sequence
[Key] The sequence specifies which order this step should appear in the grid.
Declaration
[EntityProperty(SQLType.SmallInt, false)]
[EntityDescription("Holds the order of this step within the import definition.")]
[EntitySequence]
[EntityKeyProperty]
short Sequence { get; set; }
Property Value
Type | Description |
---|---|
short |