Forum Discussion

nezra's avatar
nezra
Frequent Visitor
7 years ago

getting pbix filename in R script

Hello there,

I'm trying to write a script (R script, but not necessarily. if needed i will download newer version so that python will be an option too) that simply returns the name of the current POWER BI filename. Is this possible? 

I've looked for an answer anywhere and couldnt find anything. I know i can get the name of the current R script (which will always be RScriptWrapper.R as i understood so far), but this is not what i'm looking for. 

Thanks!

nofar.

2 Replies

    • nezra's avatar
      nezra
      Frequent Visitor

      Hey Jimmy,

      it is actually not working. i can get the R files (if i write " pattern = "*.R" "), but not the current pbix file (tried to write " pattern = "*.pbix" ").

      Thanks a lot anyway!

      nofar.