Forum Discussion
Power BI table data export in csv to email using Microsoft Flow
- 6 years ago
Hi Anonymous ,
here are a few screenshots from my test.
My source table:
My Power Query Code to send the data to Flow.
My transformed data in Flow.
Hope this helps.
HI Expert,
I am able to do this below mentioned 1st step
unable to understand power BI Step. I just have table
Shree
Hi Anonymous ,
you have to create these steps at Power Query.
1. Create a Reference of your Source Table (Query).
2. Convert this to an Array of Records.
3. Convert the Array to a Json Document
4. Push the Json Document to your Flow Web URL.
5. Convert the Webcall Response
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
- Anonymous6 years agoNot applicable
- mwegener6 years ago
Most Valuable Professional
Hi Anonymous ,
I'm skeptical if this proof of concept can transfer millions of records.
You don't need to add power apps to do this task.
Reference
Reference is another way of copying a query, However, the big difference is that; When you reference a query, the new query will have only one step: sourcing from the original query. A referenced query, will not have the applied steps of the original query.
- Anonymous6 years agoNot applicable
Hi mwegener
I am also creating reference table but getting error
Reference table query
Query in reference table
- Anonymous6 years agoNot applicable
Go to file option and select ignore privacy session and run it . i just tested it working fine
- Anonymous6 years agoNot applicable
Hi Expert,
I hope it will work to send millions of records in email and i have integrated with Jira and polulated the data in power BI . Do i have to add power apps from marketplace and do this task
Create a Reference of your Source Table (Query).
can you more elaborate on above step
Shree
- Anonymous6 years agoNot applicable
Suggestion please
- Anonymous6 years agoNot applicable
Hello Expert,
can you please explain me this step. i have simple table in power BI
2. Convert this to an Array of Records.
3. Convert the Array to a Json Document
Shree
- Anonymous6 years agoNot applicable
Hi Expert,
Suggestion Please
Regards,
- mwegener6 years ago
Most Valuable Professional
Hi Anonymous ,
open an Advanced Editor insert this M Code and Replace TableName with you Source Table.
let Source = #"TableName", ToArray = Table.ToRecords(Source), ToJsonBinary = Json.FromValue(ToArray) in ToJsonBinaryIf I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
- mwegener6 years ago
Most Valuable Professional
Hi Anonymous,
has your question been answered?
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
- Anonymous6 years agoNot applicable
Hi Expert,
In order to work in this steps ..it needs to export power bi report into JSN file. I have below mentioned steps but do not how to export power bi schema in jsn file and which needs to paste in get method of http request
https://community.powerbi.com/t5/Desktop/How-do-i-create-a-Json-file/m-p/422206#M194131
can you help me with steps for this. It is used in http get method which is first step
Shree
- Anonymous6 years agoNot applicable
Hi Expert,
Suggestion Please
Regards
Shree
- Anonymous6 years agoNot applicable
suggestion please
- Anonymous6 years agoNot applicable
Hello Expert,
i think below mentioend are the steps which i needs to excute it
4. Push the Json Document to your Flow Web URL.
5. Convert the Webcall Response
Shree
- Anonymous6 years agoNot applicable
.
- Anonymous6 years agoNot applicable
Hello Expert,
could you help me with steps for this
4. Push the Json Document to your Flow Web URL.
5. Convert the Webcall Response
Shree
- Anonymous6 years agoNot applicable
- mwegener6 years ago
Most Valuable Professional
Hi Anonymous ,
Could you post a few screenshots of your current steps?
- Anonymous6 years agoNot applicable
Hi mwegener
I am trying the generate the url using below mentioned code
Error :Enter valid JSON
let
Source = #"Tracker â SAP",
ToArray = Table.ToRecords(Source),
ToJsonBinary = Json.FromValue(ToArray),[Content = ToJsonBinary]),
LinesFromBinary = Lines.FromBinary(WebCall)
in
LinesFromBinary - mwegener6 years ago
Most Valuable Professional
Hi Anonymous ,
start with this and post a screenshot
Just create a Flow whose trigger is a âWhen a HTTP request is receivedâ (no further inputs in that step) and add a âComposeâ-action with the Body-element in it. Then save the Flow and copy the generated URL:
- Anonymous6 years agoNot applicable
Hi mwegener ,
thanks for the response,
Parse the result and load this query to the datamodel (this is very important, because otherwise the WebCall wouldnât be made if the dataset is refreshed!):
- row 8: Lines.FromBinary(<WebCallFromAbove>)
I think it is power bi desktop datamodel edit query option ..is it correct?
Shree
- mwegener6 years ago
Most Valuable Professional
Hi Anonymous ,
did you receive a URL?
Yes, the next steps are at Power BI Desktop.
Can you do that steps and post a screenshot? - Anonymous6 years agoNot applicable
Hi mwegener ,
here is the screenshots but i am getting after the step,
Error Message
Formula.Firewall: Query '10 millions (2)' (step 'LinesFromBinary') references other queries or steps, so it may not directly access a data source. Please rebuild this data combination.
Error
- Anonymous6 years agoNot applicable
- mwegener6 years ago
Most Valuable Professional
Hi Anonymous ,
has data arrived in flow?