Create a data object
After you create a connection for a data source, you need to create a data object variable that you can use in INFACore operations.
To create the data object, call the get_data_object method in the Python SDK and provide the details of the data object instance.
See the following example code to create a flat file data object variable:
ff_do = ic.get_data_source("FlatFile").get_connection("CN_FlatFile").get_data_object("salesinput.csv")
In the code:
- •ff_do is the data object variable name for the flat file.
- •get_data_source("Flat File") is the method to get the flat file data source.
- •get_connection("CN_FlatFile") is the method to get the flat file connection.
- •get_data_object("salesinput.csv") is the method to create the data object instance.
You can use the configured data object variable when you apply prebuilt functions or other operations on the data object instance.