You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"I'm having the same problem with Reports. It appears the fullName for the Report object isn't accessible via the API, so reads, updates, and deletes aren't possible. Anyone have any success here?"
The text was updated successfully, but these errors were encountered:
I've been trying to use readMetadata for this, passing in the fullname as MyFolder/MyReport and its not working. However using the retrieve operation it does work. Downside here is you need a Visualforce context. However below is a screenshot of a Report retrieved this way, using the Retrieve Demo that is part of this library.
Ok scrub that, mix up between orgs i was coding in vs creating my report in, doh, need to step away from the keyboard! 👍 Anyway here is a working example...
public static void readReport()
{
MetadataService.MetadataPort service = createService();
MetadataService.Report report =
(MetadataService.Report) service.readMetadata('Report',
new String[] { 'MyFolder/MyReport' }).getRecords()[0];
System.debug(report.description);
}
From [https://github.com//issues/26]
"I'm having the same problem with Reports. It appears the fullName for the Report object isn't accessible via the API, so reads, updates, and deletes aren't possible. Anyone have any success here?"
The text was updated successfully, but these errors were encountered: