Hello,
I'm trying to use ConnectApp (ConnectApp | DataMiner Docs) method to connect to a different cluster through Automation Script. Any examples of such use?
Which class does this method belong to? All examples are appreciated.
Hi Sara,
The method you linked in your question is an API method, part of the dataminer web services.
e.g.
![](https://community.dataminer.services/wp-content/uploads/wp-user-manager-uploads/2024/01/Edib-Supic-small.jpg)
Hi Edib,
As far as I remember you will need to implement a HTTPClient class in the automation script to get this information. Another option is to use the Data Aggregator: https://docs.dataminer.services/user-guide/Advanced_Modules/Data_Aggregator/Data_Aggregator_DxM.html
This application will allow you to execute GQI queries remotely and store the result of the query in a CSV file.
![](https://community.dataminer.services/wp-content/uploads/wp-user-manager-uploads/2024/01/profile2.jpg)
Hi Edib,
As Miquel mentioned, if you want to connect to the API from an automation script, you can use the c# HTTP client.
However, it’s important to evaluate the use case.
How much data do you need to extract, how fast do you need to extract the data, etc …
Using the standard API is one option.
You could also use the user-defined API, which allows you to tailor the API on the remote system to fit your needs and enhance the overall communication flow.
You should also think if you want to collect your data every time through the automation engine, or if it makes more sense to create an element on your dataminer system that fetches the desired data and then gets the data from that element in your script. This element could use an API on your remote dataminer system, but you could also opt to use replicated elements.
Hi Ive,
How is HTTP request sent from automation script? We we need to send this from a script in order to get data which will be used in GQI for LCA. Table whose data will be used is on a different cluster.
Thanks