19

It turns out the following DeployOptions setting was what I was missing: singlePackage boolean Indicates whether the specified .zip file points to a directory structure with a single package (true) or a set of packages (false). I needed to set this to true, as I assume my flat zip file represents a single package. After doing that the Number of ...


12

You'll need to authorize the app in your org, your profile, or your user. To authorize all users in the org, you can go to Setup > Manage Apps > Connected Apps, edit Workbench, and set Permitted Users to "All users may self-authorize." To authorize usage just for your user profile (e.g. System Administrators), go to the same area, but click on the label of ...


10

Did you check "Deleted and archived records:" as "Include" ? And as for Developer console, you have no way to realize it. You can realize with Apex using SOQL with "ALL ROWS" option, but Query Editor on Developer console doesn't support it.


9

I have solved the issue. Solution: If you have namespace defined in salesforce you need to define it with /services/apexrest/namespace/lead


9

Are you using the "QueryAll()" API call when you try to retrieve the delete records? Using the regular "Query()" call won't allow you to retrieve delete records. See the API documentation on the "QueryAll()" API call here: http://www.salesforce.com/us/developer/docs/api/index_Left.htm#StartTopic=Content/sforce_api_calls_queryall.htm Thanks!!!


8

Here is how I have tried using workbench to test a SOAP web service. Hope this helps. First you have to get the session ID by passing a Soap request(I copied the request XML from SoapUI) to login method of the Salesforce SOAP API. Service URL: /services/Soap/u/37.0 Method : Post Request Headers: (below) Content-Type: text/xml; charset=UTF-8 Accept: ...


8

Found the issue. The workbench is a third party tool managed by people that (apparently) have nothing to do with Salesforce itself, so the workbench is not a supported app. The certificate they were using has expired, they are trying to update it. You can follow the issue here: https://github.com/ryanbrainard/forceworkbench/issues/710 A possible solution ...


8

When you deploy "Check Only", you are just validating, not actually committing your changes. Remove that selection (i.e. Select only Single Package) and you will be good to go. Note: As stubborn for consistency that I am, I would recommend that you do not add the suffix "_big_obj" to your object. The "__b" at the end does that for you and you lose valuable ...


7

As you mentioned in the Question, I guess workbench operated in the Bulk API but in Parallel Processing mode. Parallel Processing mode is known to throw these kind of errors. Refer to the section Managing Locks to Maximize the Benefits of Parallelism in this The Salesforce Bulk API - Maximizing Parallelism and Throughput Performance When Integrating or ...


6

You're running into the Archived Activities limitation. Events older than 365 days and tasks closed more than 30 days don't appear in "normal" queries. This is a performance benefit. If you're using Apex Code, use the ALL ROWS SOQL modifier to query those records, and if you're using the Data Loader or another tool, use the QueryAll function (e.g. Export All ...


6

Connected apps only need to be defined one total, not once per org. You can use any org, like a free developer org, to set up the oAuth/connected app info, and then use that with as many consumer orgs as you want.


6

I tried your query in workbench and I was surprised not to see any result for Newvalue and Oldvalue. Then i shuffled the positions of NewValue and OldValue in the query and saw that it works. Query: SELECT NewValue,OldValue, CaseId,CreatedById,CreatedDate,Field,Id,IsDeleted FROM CaseHistory Result: I believe it might be a bug.


6

EmailMessage is only available for organizations that use Email-to-Case or Enhanced Email, which is automatically enabled for most customers. If you want to be able to relate Email Message records to other objects (besides cases), then it is recommended that you enable Enhanced Email. It means that EmailMessage can be used for other objects as well other ...


6

There are a few places that a limit might come into play for this: A limit from the Salesforce Metadata API - The list specified in the -r flag will become the runTests property of the DeployOptions object passed to the MDAPI. The Metadata API WSDL from my production org places no limit on the size of this property: <xsd:element name="runTests" minOccurs=...


6

You can use SOQL Tooling api - can test from developer console: Also in older orgs you have objects ExternalString and ExternalStringLocalization which will give info on custom labels and also translated labels.


5

ApexClassMembers aren't the same thing as ApexClasses. If you want to work with an ApexClassMember you will need to create it through the tooling api first. //First, the MetadataContainer JSONObject metadataContainerRequest = new JSONObject(); metadataContainerRequest.put("Name", "SaveClass" + id); // Any unique name JSONObject metadataContainerResponse = ...


5

There was an issue with OAuth on NA15, but should be resolved now. I tested with Workbench with a brand new NA15 org and its working as expected.


5

See image for the link to download the CSV. GRRRRRRRRRRRRR not letting me post without 30 characters SFSE :X


5

This is because of record locking. From the Salesforce Developer site: This is something temporary and would be fixed automatically in 10-15 minutes maximum. Some common causes are: Sharing Rules are being calculated. A picklist value has been replaced and replacement is in progress. A custom index creation/removal is in progress. Most ...


5

Use database class and from Developer Console try Execute anonymous window Database.Undelete(recordIDs, allOrNone); Restores one or more existing sObject records, such as individual accounts or contacts, from your organization’s Recycle Bin. SOQL statements can use the ALL ROWS keywords to query all records in an organization, including deleted records ...


5

"Try out Workbench at https://workbench.developerforce.com. Note, some of the limits and features are restricted for this demo for performance reasons." (Emphasis mine.) According to the Workbench page on Salesforce, he Developerforce Workbench page is a demo page, and I never found it to be reliable. You can deploy workbench to Heroku yourself and not have ...


5

A few key tactics should alleviate this issue: Group your input data by WhatId to ensure that the Tasks for each Account are grouped into as few batches as possible. Note that this might not actually be enough - updating a Task locks the parent Who, What, and Account, so if What is not an Account, you may not be able to predict from your exported data which ...


4

Clearing cache would resolved your issue. I did resolved this by clearing cache and browser history.


4

I am also facing the same issue. I resolved this by following steps- when you go to Workbench and select Sandbox, you get re-directed to test.salesforce.com where you get prompted for your password. Try changing the beginning of URL from test to csX, where X is your Sandbox instance (e.g. cs2.salesforce.com) and press enter. Now login and your workbench home ...


4

It does take some time and someone has to include the API version into the code as well as the newest version of the API. You can monitor the project here or create your own pull request similar to the one for api 35.0 and submit it.


4

Standard objects aren't retrieved using the CustomObject wild card syntax. You must specifically reference each standard object you want to retrieve. <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata"> <types> <members>Account</members> <name>CustomObject</name> &...


4

There are several ways to do it depending on your exact use cases including 1) Use 3rd party solutions such as Spanning, Datto, OwnBackup etc. Some of these offer scheduling so you can do it on a defined periodicity. 2) Built in Data Export feature. Follow this tutorial for more details. 3) You can individually export Reports data as well using the ...


4

Unfortunately thats not possible. You can fetch the records using the Id or the externalId field using this format. curl https://yourInstance.salesforce.com/services/data/v20.0/sobjects/Merchandise__c/MerchandiseExtID__c/123 -H "Authorization: Bearer token" Response { "attributes" : { "type" : "Merchandise__c", "url" : "/services/data/...


4

This will likely be an Summer '17 feature, which would imply it needs API version 40.0. Try changing the /v39.0/ out the in URL to /v40.0/. Also, as per the current documentation, make sure you are calling the API against a Developer Edition org. It won't work on a sandbox. Lightning API is available as a Developer Preview in all DE orgs. To use the API in ...


4

Workbench is an application which uses salesforce for authentication purpose and then perform operations on the data and metadata of the same salesforce org. It does not have anything to do with Lightning or classic experience as it works on its own. You can reach to workbench with following link: https://workbench.developerforce.com/ After logging in with ...


Only top voted, non community-wiki answers of a minimum length are eligible