-
Notifications
You must be signed in to change notification settings - Fork 979
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
How to create reports ? #147
Comments
Without any answer about this issue, I tried over again and managed to entirely clone a report from one folder to another. The initial issue was that the "fullName" field of the new report wasn't well constructed as it actually needs to be populated with both the report folder api name and the report api name. As this might be of use for anyone, here's the code sample I'm using:
This actually needs to be customized depending on one's need over reports metadata, but it's a great sample to begin with mdapi report cloning. |
Thank you @KGFTW for this excellent submission. My recent family relocation to the US has kept my personal time quite busy, i'm only just getting back into the community. I really really appreciate you sharing this. |
@KGFTW i update the README file to highlight this excellent submission, also tweeted it, thanks again! 👍 |
@afawcett You're Welcome ! Here's also a dashboard cloning code sample I managed to do as I needed it too. Combining both this one and the previous one can become really handy :)
|
Hi,
I am trying to create reports programmatically with the apex metadata api, but am facing the following issue:
Here's the code used (in the execute anonymous window) :
Could you provide me with what I'm missing there ?
Thanks.
PS: This is almost a duplicate of this issue.
The text was updated successfully, but these errors were encountered: