Forum Discussion

jnickell's avatar
jnickell
Helper V
6 years ago
Solved

Issues with using a parameter in web.content url in dataflow

This seems to be something others have struggled with and I've tried a few different ways, but when I attempt to create a function, and pass it as a parameter used in getting a specific web resource ...
  • jnickell's avatar
    6 years ago

    After some more digging, I think I found something that works.  Using, RelativePath the function attribute.

    I updated the query to have ReportQueryURL be the full path up to the "ID" value I needed to parameterize.  

     

    ReportResult = Web.Contents(ReportQueryURL,
              [RelativePath=ReportID,
              Headers=ReportHeader]),
            ReportOutput = Csv.Document(ReportResult),

     

    I'm able to save the dataflow, with the function, and my first 'test' of the function is working as well.