Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [api-version]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
39 views

Check Apex class api version before deploy

Is there any way to check the apex class ApiVersion Before deploying it? For example, let's say a developer is trying to save an apex class with API Version 25, We need to show an error message 'The ...
user avatar
0 votes
0 answers
15 views

We created new partner jar to support API version upgrade salesforce summer 22 release but getting error Parser exception when running jar

Hi All We have created new Partner Jar to support API version legacy upgrade. Our old code of java which connect with salesforce using SOAP are now breaking with following error. Unexpectd element. ...
user avatar
  • 1,277
0 votes
0 answers
33 views

Salesforce update summer 22 rest API v30+

I am using Force.com toolkit for PHP for our integrations and I believe the summer 2022 version is about to remove support for it and our plugin may stop working. I am thinking to use the new the PHP ...
user avatar
1 vote
1 answer
963 views

Property 'identifier' not valid in version 51.0 [duplicate]

Trying to deploy from environment to another a LightningPage, I get this error: Property 'identifier' not valid in version 51.0 I don't know where I can specify the version of the page (or change it) ...
user avatar
  • 157
0 votes
0 answers
113 views

Failed to deploy source to org

Given: I am trying to deploy helloWorld project but its unable to deploy project and giving errors listed below.Instead of getting ended with exit code 0 I am getting Deploy Errors Create ...
user avatar
  • 1
0 votes
0 answers
136 views

SFDX commands not working from API version 52.0 in CLI

Today, when I tried to use the regular command to fetch list of orgs of Salesforce in CLI terminal, it throws me an error/warning as below: And I'm unable to login to my salesforce orgs too. Like no ...
user avatar
  • 712
1 vote
1 answer
48 views

New Journey Builder Version with different Entry Source - will the previous version keep running? [closed]

I have a journey using an APIEvent as the entry source. I have created a new version within the same journey but with a new APIEvent. Can both versions run concurrently with the different entry ...
user avatar
  • 11
3 votes
1 answer
80 views

Can objects such as PackagePushRequest be made available in a scratch org?

The question relates to some new API 51 objects that allow second generation packaging push upgrades to be scheduled. Running this script in our Partner Business Org (PBO): List<String> names = ...
user avatar
  • 129k
1 vote
0 answers
99 views

Unable to deploy change set to production [duplicate]

After the new realease our developer sandbox changed its API version to 52.0 but or production org still at 51.0 . When we try to send our change set to procution org, we keep receving this error ...
user avatar
  • 11
2 votes
0 answers
138 views

400 Bad Request for Salesforce Platform APIs in Android Version 6

We are facing an issue with our mobile application, we face issue(400 bad request) when calling Salesforce Platform API to get specific records of custom object(sObject Contact Association). And this ...
user avatar
0 votes
1 answer
121 views

Get Version of Journey Builder in Custom Activity

Is it possible to get the version of Journey builder (inside Custom Activity) from which the execute method got triggered?? or Any other identifier to decide if its a new journey/ a version of same ...
user avatar
4 votes
1 answer
43 views

Managed Package Class version error

I'm trying to update a Class' API version within a managed package. The function is as follows: @HttpPut global static String uploadNewAttachment(RestRequest req) { When I try to bump the Class ...
user avatar
  • 1,226
2 votes
1 answer
55 views

Upgrade API version of non-upgradeable metadata

As an ISV we are planning to update the API version of our package metadata components to v.50, so all of them will have the same. My question is: Can we (and would want to) upgrade API versions of ...
user avatar
11 votes
1 answer
578 views

Best approach to safely bump up version of classes

I have a huge managed package app that I build many years ago (40% of all classes have v29 as version) and I am thinking of bumping them up all to the latest v50. Is that safe or what could possible ...
user avatar
1 vote
2 answers
4k views

Property 'itemInstances' and 'processOrder' not valid in version 48.0 error when deploying in Production, even though Production is 49.0

When trying to deploy the converted metadata using VS code sfdx force:mdapi:deploy deploy to my Production Org and I get the error Property 'itemInstances' not valid in version 48.0 and Property '...
user avatar
  • 456
2 votes
2 answers
1k views

Property 'storeOutputAutomatically' not valid in version 48.0

I am trying to deploy a flow to a sandbox and I am getting the error Property 'storeOutputAutomatically' not valid in version 48.0 The sourceApiVersion specified in my sfdx-project.json file is 48.0....
user avatar
  • 163
1 vote
1 answer
2k views

Downgrade Aura Component API version

I am trying to downgrade aura component api version to 39.0 from visual studio code, and push it back to sandbox. I can see that it's been changed in visual studio, but hasn't changed in Salesforce ...
user avatar
0 votes
2 answers
278 views

Test/API Difference with Regards to EmailMessage and Messaging.SendEmail()

Any resources on what might've changed in API 37 that wasn't present in 36 that could be causing the issue I'm seeing? If I update every other apex class in my org to 46 and leave the test class at ...
user avatar
3 votes
2 answers
4k views

Version error when uploading Change Set

I’m trying to deploy custom objects, custom fields, page layouts, compact layouts, Lightning pages and Global value set (global picklist) , when uploading changeset it is giving me API version error ...
user avatar
  • 141
4 votes
1 answer
234 views

Is there a way in Apex to dynamically determine the ApiVersion the current code is executed with?

Assume we have an Apex class myClass.cls and we use it on several different Orgs. While the source-code is the same, on some Orgs we use different ApiVersion, e.g. some Orgs use v45.0, others use v42....
user avatar
  • 33.6k
4 votes
4 answers
2k views

Should I update trigger API version?

I am an admin and have looking through some of the old triggers that are currently in our org. There are a few of them that are still active and do some important job but are set to API version 20. ...
user avatar
  • 191
11 votes
2 answers
761 views

Access to SObject Schema in Apex is very slow after API v44

We needs to use Schema and DescribeSObjectResult classes to get all SObject in the user's organization. But we noticed performance problem after upgraded to API v44. The following code could reproduce ...
user avatar
  • 331
0 votes
2 answers
466 views

Deploy change set from sandbox to production unavailable

I have a process builder which I want to build to production, when I create a change set it says that this change set requires the "45.0" or later platform version, if it was a visualforce page I ...
user avatar
  • 49
1 vote
1 answer
439 views

Mismatching versions-error when trying to install unlocked package

I created a new version of my unlocked package and tried to install it into a scratch org. Unfortunately I get the error Mismatching versions.. From what I know this error comes up, when one tries to ...
user avatar
  • 117
2 votes
0 answers
71 views

Is there a way to specify an API version of a call to @RestResource?

I would like to specify an API version when I call a @RestResource via an API. Is that possible? Why For some reason, our Spring '19 sandbox is having a weird issue, and I'd like to fix this before ...
user avatar
2 votes
1 answer
806 views

Why do Apex classes have an API version

I am unsure why each class has an API version. I know during each release they have added functionality therefore previous versions would not support this but I feel there must be more of a reason. ...
user avatar
  • 703
0 votes
1 answer
184 views

Apex class APi version update

could anyone suggest whether we can update API version of apex class through Apex/trigger. If i try to update ,i am getting DML operation not allowed on aepx classes.
user avatar
5 votes
3 answers
6k views

Is there a way to upgrade api versions of all apex classes without manually updating each of them?

I have an org with hundreds of apex classes, all of which have api versions ranging between 30-37. Is there an easy way to bring them all to the latest api version at once without resorting to manual ...
user avatar
  • 303
6 votes
2 answers
194 views

Using newly released feature on an apex class having older API version

As you all probably know switch has been introduced in Summer'18 (API v43,0) release. I have started using it in my apex class which is having API version 36,0 and somehow it works in my sandbox. I ...
user avatar
  • 479
0 votes
1 answer
407 views

Upgrading Managed Package will also upgrade the API Version of Apex Class if it is changed

I want to upgrade API version of one class to use new feature provided in new API version. But, I want to know what will happen when existing customer upgrade their Managed Package with new package (...
user avatar
  • 57
5 votes
2 answers
528 views

What are the risks or drawbacks of creating Parameterized Interfaces using of the Apex API version 25?

Unfortunately, as of API version 26, SFDC removed parameterized interfaces. However, it is relatively easy to create new interfaces and set the version as 25. So, to take the example from ...
user avatar
6 votes
1 answer
106 views

Is the API Version available for Standard Fields/Objects with which the fields/objects has been introduced?

I have written a SOQL-tool which allows me stuff like SELECT * FROM ... It is based on APEX Schema functions and works very good. It expands and compiles a full list of fields in a string, which I ...
user avatar
  • 33.6k
2 votes
1 answer
387 views

Advice on recompilation of production classes

I have an APEX Class that needs some updates, that is on version 18. When I make the updates, the version is also updated to the most recent (v41). When I try to push to production I get errors saying ...
user avatar
  • 3,177
5 votes
1 answer
1k views

Force.com IDE still in v38.0?

I am trying to update eclipse force.com IDE so that I can create lightning components with v41.0(with Winter 18 release feature). I do not see an update available and while creating the component/apex ...
user avatar
  • 4,521
2 votes
1 answer
583 views

EventAttendee object deprecated after API 25.0

We have working code that is based on 25.0 API and used EventAttendee object in its SOQL. We are now trying to Migrate the code to latest 41.0 API but the EventAttendee object does not exists in the ...
user avatar
  • 159
0 votes
2 answers
1k views

How do I upgrade salesforce API version?

How do I upgrade salesforce API version? If I click on Generate Enterprise WSDL the XML shows API version as 40.0, how to upgrade version to 41.0, I want to use the REST API calls
user avatar
  • 111
0 votes
1 answer
81 views

Summer 17 Critical update - CSRF Protection - How would it affect VF pages below version 27.0

The 'Require CSRF protection' option on VF Pages are available only for pages with API version 27.0 or later. I was wondering if activating the critical update (Allow CSRF Protection on GET Requests ...
user avatar
7 votes
4 answers
6k views

Which API versions are still supported?

I see some posts that Salesforce supports all the back versions of its APIs. But I also see pages on Salesforce.com that only give an End of Life statement that API versions will be supported for 3 ...
user avatar
  • 227
3 votes
1 answer
803 views

Is there a Patch release schedule? Can I request my org be upgraded to the latest Patch?

I recently discovered a bug that makes it impossible to deploy subscriber triggers on Platform Events. In my sandbox environment, the bug appears to be fixed. Yay! Unfortunately, that patch has not ...
user avatar
  • 142k
1 vote
0 answers
182 views

Upgrading to latest Salesforce Apex API version number

Our organisation has over 100 Apex classes, triggers and VF pages written over a period of 8 years. The versions of Apex API that we have used vary from 10 to the latest 40. Now we are trying to bring ...
user avatar
  • 351
1 vote
1 answer
395 views

Unable To enable inline editing for Visualforce page Error: Inline Editing is supported for API Version 21 and above

I am trying to enable inline editing for a visual force page I created. However, whenever I try to save it I get the following error, "Error: Inline Editing is supported for API Version 21 and above." ...
user avatar
0 votes
1 answer
127 views

API describeSObjects() version 37 does not work with older versions

We have downloaded the Partner.wsdl version 37.0 from Salesforce, which we use with our application to connect to Salesforce(using AXIS) to read/write records and to build the metadata locally read ...
user avatar
2 votes
1 answer
239 views

How to manage API version differences in packages and subscribers?

I think we can all agree that in an ideal world whenever we upgrade the SF API in managed package code we desire stability in subscriber orgs. Unfortunately this appears far reaching in the world of ...
user avatar
  • 3,764
2 votes
0 answers
815 views

Possible bug with Process Builder, Apex Unit Tests and API Version

I ran into this issue last week during a deployment and submitted as a potential bug. Not surprising, Salesforce Support pushed back heavily saying that this is a feature of the application, not a bug....
user avatar
1 vote
1 answer
118 views

Salesforce Transaction API version

In ORG we have multiple triggers for Opportunity with different API versions. Some of triggers are installed from managed package and have api versions 25-28. Local ORG opportunity trigger has api ...
user avatar
  • 758
2 votes
2 answers
829 views

'Invalid field BillingAddress for SObject Quote' error when deploying to production

I have some classes that query and use the Quote.BillingAddress aggregate field. This works fine in sandbox (api version 34.0) and running tests against it compile and pass testing. However, when ...
user avatar
  • 988
1 vote
0 answers
239 views

Render PDF in Landscape on API Version 33 or above? (Works on 26)

My visualforce page is rendered as a pdf with renderAs=pdf @page{size: landscape;} Unfortunately, this setting works only with API Version 26.0 and not 33.0. Is there a known alternative/workaround ...
user avatar
  • 151
8 votes
1 answer
692 views

SOQL Error Only When Accessing Lead.Address Standard Compound Address Field From WorkFlow Triggered Task Insert

I've added a section of code to our task trigger that retrieves two sets of address fields from the lead or contact the task is being made on - see below-. private static void ...
user avatar
  • 836
4 votes
0 answers
171 views

Calling APEX out of JavaScript the APEX-API Version is ignored

I run in an issue with calling APEX out of JavaScript, when i call my APEX class, the class is executed with API-version 34.0, but in the metadata of this class is the API-version set to 27.0. I need ...
user avatar
15 votes
3 answers
7k views

What is the best practice re: API Version of your Apex Classes?

I'm in the process of pushing some updates to some code I originally wrote 12-18 months ago, and the API Version is between 27.0 and 29.0 I know this is to protect the integrity of the test classes ...
user avatar