cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Download CSV file in Power Automate

Jose3313
6-Contributor

Download CSV file in Power Automate

Is it possible to get the CSV file of the URL link of the email that is sent from the Data Monitor in Power Automate?

 

I enter the URL link and put in the Headers the Basic authorization, but it does not work. Is something missing in the settings?

 

I use the same URL link and Headers settings in Power BI to get data from a web data source and it works.

 

Jose3313_0-1732547126746.png

 

 

ACCEPTED SOLUTION

Accepted Solutions
rhart
16-Pearl
(To:Jose3313)

THe following url can output or download the results of query builder reports as CSV and other formats.

 

https://<windchill_host>/Windchill/servlet/WindchillAuthGW/wt.enterprise.URLProcessor/URLTemplateAction?oid=OR%3Awt.query.template.ReportTemplate%3A<report_ID>&action=ExecuteReport&format=formatDelegate&delegateName=CSV

 

Use the custom input page to select an output format, wtcore\jsp\report\reportGenForm.jsp, then generate the report and copy the url.

 

2024-12-02_145922.png

 

Should be OK to use that in power automate, I have used it in powerquery/automate too with basic auth from power desktop and report server

View solution in original post

3 REPLIES 3
rhart
16-Pearl
(To:Jose3313)

THe following url can output or download the results of query builder reports as CSV and other formats.

 

https://<windchill_host>/Windchill/servlet/WindchillAuthGW/wt.enterprise.URLProcessor/URLTemplateAction?oid=OR%3Awt.query.template.ReportTemplate%3A<report_ID>&action=ExecuteReport&format=formatDelegate&delegateName=CSV

 

Use the custom input page to select an output format, wtcore\jsp\report\reportGenForm.jsp, then generate the report and copy the url.

 

2024-12-02_145922.png

 

Should be OK to use that in power automate, I have used it in powerquery/automate too with basic auth from power desktop and report server

aaronjlarson
14-Alexandrite
(To:rhart)

I think this is one part of the answer.  The OP states needing to grab the URL from the Data Monitor which leads me to believe that - yes, the intent is to ingest the resulting file from the Data Monitor link into Power Automate.  If the Data Monitor has multiple runs then just knowing one URL to give Power Automate (a static input) will not work if you intent to get the latest file output from the Data Monitor.  The URL will change over time with each execution of the Data Monitor.  I did something similar once

 

aaronjlarson_0-1733166012903.png

With this subselect to narrow down the criteria to a single Data Monitor (hard coded) and also the latest "saved report holder" in the Data Monitor, i.e. the URL/file from the last execution.  This is done with subselect just finding the latest "saved report holder" with the latest modified date.

aaronjlarson_1-1733166138594.png

In my case I was using this to return an XML payload to Power Automate.  The way I had it setup was Power Automate would call this report and ingest the result which included the dynamic parts of the URL.  Then I would create the full Data Monitor URL in Power Automate by combining with the static parts of the URL - done all using variables. Then I could make another HTTP GET request to the full URL that would provide the full payload of the executed Data Monitor "file".  

Jose3313
6-Contributor
(To:aaronjlarson)

Thanks

Announcements


Top Tags