Hi, is it possible to use IDEA from Python without first opening IDEA? Is there some code I can add to be able to do this?
The code below works if I open IDEA before running the code. This is the error I get when running the below code: "Invalid database or the database hasn't been specified yet."
import win32com.client as win32ComClient
if __name__ == "__main__":
resultDbName = "Sample-Employees-Extraction.IMD"
criteria = 'COUNTRY=="Mexico"'
idea = win32ComClient.Dispatch(dispatch="Idea.IdeaClient")
table = idea.OpenDatabase("Sample-Employees.IMD")
task = table.Extraction()
task.AddExtraction(resultDbName, "", criteria)
task = None
table = None
idea = None