1

I tried to save dashboard and report via Salesforce Reports and Dashboards REST API and it works, but when I change developerName in the request body and send this request, in the response I got a json body with saved metadata of Report/Dashboard and parameter developerName hasn't been changed.

I sent PATCH request on the url: https://ap2.salesforce.com/services/data/v37.0/analytics/reports/00O28000007EUn9

Request json body:

{
"reportMetadata": { "developerName": "MyTestDeveloperName", "name": "MyTestReportLabel" } }

Response:

{ "reportExtendedMetadata": { ... }, "reportMetadata": { "developerName": "AlexTestReport", "folderId": "00528000001tqmoAAA", "historicalSnapshotDates": [], "id": "00O28000007EUn9EAG", "name": "MyTestReportLabel", ... }, ... }

I also used update and upsert methods of the Salesforce SOAP API, but in the response I got the next message:

<message>entity type cannot be updated: Report</message> <statusCode>CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY</statusCode>

Have anybody any ideas how to change developerName of Dashboard and Report using Saleforce API?

2
  • Please share your payload and endpoint. May not be possible to update but it's hard to help with an incomplete picture. – Adrian Larson Jul 22 '16 at 10:54
  • 1
    I added endpoint url, request json body and response. – Alex Chudovsky Jul 25 '16 at 8:35
0

You cannot update Dashboards and Reports because they are read-only via the SOAP and REST APIs.

https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_dashboard.htm https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_report.htm

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.