Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Moving between different dataflows

Hi,

 

I have a question on how you would handle different environments with desktop.

I have three dataflows each with the same tables but different data for Dev to Prod.

I will do my development in Desktop with the Dev dataflow.

When I am ready to move to the prod dataflow how would I easily switch to the Prod dataflow?

 

I know I could swap the M code from Dev to Prod dataflow but if I have lots of tables this would become very time-consuming.

Any help would be great.

 

Thanks

  • Anonymous I, in fact, get guid from connected tenant and filter workspace and dataflows with their name and then store their guid to use in respective queries, it helps not to manually get guid but get it from the dataflow tables itself and it makes it super easy.

     

    I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

4 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion
    Generally you would do that with Query parameters but unsure about how that would work with dataflows...
  • Anonymous great question and I'm doing it for many years now. I usually store Dataflow and Workspace guid as parameters and use that in tables, and once ready to switch to production or back to development, I just change these values and everything works.

     

    You have to do this one time and then it will be very easy. 

     

    I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

    • parry2k's avatar
      parry2k
      Super User

      Anonymous I, in fact, get guid from connected tenant and filter workspace and dataflows with their name and then store their guid to use in respective queries, it helps not to manually get guid but get it from the dataflow tables itself and it makes it super easy.

       

      I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

      • Anonymous's avatar
        Anonymous
        Not applicable

        Was thinking along these lines, thanks for the help 🙂