Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions relating to Apex, the native programming language for the Force.com platform. Use it for general questions on syntax, errors, constructs, and rules of use. Most questions should include a code *excerpt* to help answerers understand specifically what has gone wrong or why you need help.
4
votes
Accepted
System.requestVersion() does not work in Second Generation Packaging
After contacting Salesforce, I had confirmation that Version is, to this day, not supported in 2GP, which caused the issue described here.
Update Oct.2021: still not supported.
The "least worst" worka …
13
votes
2
answers
815
views
System.requestVersion() does not work in Second Generation Packaging
global static void versionMethod() {
Version packageVersion = System.requestVersion();
}
}
the following error occur when calling the method containing System.requestVersion(); 1
(1) Apex … Notes
1: This occurs outside of Apex test calls as well. We originally found the issue by calling a similar method through a RemoteAction in a VisualForce Page. …
6
votes
1
answer
652
views
Gen2 Package, ancestor version creation failing without any code changes for 2GP Managed pac...
I have the following issue with the Second Generation Package, I have this Apex class:
global with sharing class TestClass {
global virtual class B {
}
global class C1 extends B {
} … Edit:
Here's a Minimium Reproducible Case repository https://github.com/louis-bompart/sturdy-funicular
It's a simple sfdx project setup with sfdx-cli and the aforementioned Apex class. …