-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'd like to record a Macro and then run this via the command line to support a scheduled task. Does anyone know if this is possible? I am on version 3.7.1 but can update to the latest build if required. #943
Comments
@MikkyD2 command line execution of C# scripts can be done through TE2 (since TE3 does not have a CLI). You can use TE3 to record the macro, then save the generated script as a file, which you can then pass into the TE2 CLI using |
Thank you! I thought I was going mad with not finding command line references in the documentation |
Otykier - thanks for the quick help. A few questions. Have cs scripts been replaced with Tabular Model Scripting Language .tmsl scripts? Using the command line I've got as far as the following but my credentials aren't being picked up using the following. start /wait TabularEditor.exe powerbi://api.powerbi.com/v1.0/myorg/PRIMA PPD -S "Refresh.tmsl" -LOGIN "[email protected]" "MyPas?sword" |
Tabular Editor uses C# scripts - not TMSL. For this reason, it should not be used for data refresh. Username/password login does not work with Power BI because of MFA/interactive logins. Instead, you’d have to use a service principal. |
Thank you so much. The connection is now working and the following may be helpful to someone else (ids all changed) -- using my username and password -- using an SPN. I had this created, added as admin to the workspace and sent to Azure Portal -> App registrations to create a secret/key aka password for logons Documentation used from |
I've opened the not being to run the script issue under TE2 command line Any help appreciated |
Describe the issue
A clear and concise description of what the issue is.
** Which version are you currently using? **
Tabular Editor 3, version: [Help -> About will show you]
Tabular Editor 3 edition: [Trial/Desktop/Business/Enterprise]
To Reproduce
Are you connected to SSAS/AAS/Power BI or working offline?
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: