Questions tagged [api-version]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
59 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 ...
1
vote
1answer
27 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 ...
3
votes
1answer
42 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 = ...
1
vote
0answers
53 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 ...
2
votes
0answers
79 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 ...
0
votes
1answer
37 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 ...
4
votes
1answer
33 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 ...
2
votes
1answer
36 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 ...
11
votes
1answer
564 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 ...
1
vote
2answers
3k 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 '...
2
votes
2answers
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....
1
vote
1answer
1k 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 ...
0
votes
2answers
246 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 ...
3
votes
2answers
3k 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 ...
4
votes
1answer
178 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....
4
votes
4answers
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. ...
11
votes
2answers
704 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 ...
0
votes
2answers
423 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 ...
1
vote
1answer
369 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 ...
2
votes
0answers
60 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 ...
2
votes
1answer
559 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. ...
0
votes
1answer
146 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.
5
votes
3answers
4k 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 ...
6
votes
2answers
183 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 ...
0
votes
1answer
231 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 (...
5
votes
2answers
509 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 ...
6
votes
1answer
62 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 ...
2
votes
1answer
341 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 ...
5
votes
1answer
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 ...
2
votes
1answer
448 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 ...
0
votes
2answers
805 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
0
votes
1answer
72 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 ...
7
votes
4answers
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 ...
3
votes
1answer
733 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 ...
1
vote
0answers
173 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 ...
1
vote
1answer
377 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." ...
0
votes
1answer
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 ...
2
votes
1answer
171 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 ...
2
votes
0answers
802 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....
1
vote
1answer
108 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 ...
2
votes
2answers
803 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 ...
1
vote
0answers
221 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 ...
8
votes
1answer
590 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 ...
4
votes
0answers
167 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 ...
15
votes
3answers
6k 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 ...