Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
dineshkumarl
Partner - Contributor III
Partner - Contributor III

Reload QEM task using Python API with filters

Hi,

 

I am trying to reload a Qlik Replicate task using QEM Python API. 

I am using reload_table method to achieve my goal.

However, I do not see any option to define filters using the above method. 

I have tried the below:

reload_table(server, table, filters:{col1:value1,value2})

but that doesn't work.

Is there any way to achieve my said requirement using the above method or is there any other method which I can use to reload the task with table filters. 

Kindly assist. 

Labels (3)
3 Replies
Shai_E
Support
Support

Hi @dineshkumarl ,

Checking the API documents for this method i do not see a method parameter named "filter" mentioned.

So, i assume there isn't any.

Source:

reload_table | Qlik Enterprise Manager Help

Would also add that the code for the method in aem_client.py doesn't include such a parameter.

 

Best Regards

Heinvandenheuvel
Specialist II
Specialist II

Are you referring the the Qlik Enterprise ManagerTM Python API?

The topic tittle reads >> Reload QEM task using Python API with filters  ?

The topic body reads >> I am using reload_table method to achieve my goal.

Do you want to reload a task (definition) or a table in a task?

You then go on with "I have tried the below: reload_table(server, table, filters:{col1:value1,value2})

But the API Userguide indicates the argments are; def reload_table(self,server,task,schema,table)

There is no Filter argument for reload_table. Reload_table is an action initiator, not a defintion method

If you want to define a new filter for a table in a task, then you have to re-defined the whole task with that the new filter (values) in the update task json through the import_task Api.

Hein

 

dineshkumarl
Partner - Contributor III
Partner - Contributor III
Author

Thank you for the update, I will check on import_task API.