Skip to main content
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
Results tagged with
Search options not deleted user 49266

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.

1 vote
0 answers
999 views

Why is my Approval Process instance not creating NewWorkItems?

Apex class: global class GetQuoteAndApprovalProcessIds { @InvocableMethod(label='Get Quote And Approval Ids') global static List<Id> getIds(List<Id> quoteIdList){ Id quoteId = quoteIdList[0]; … quoteAndApprovalProcessIds; } global class QuoteAndApprovalIdResults { @InvocableVariable global Id quoteId; @InvocableVariable global List<Id> approvalProcessIds = new List<Id>(); } } Apex
AstroLovesCodey's user avatar
1 vote
1 answer
1k views

Missing Return Statement When Implementing the StubProvider Interface

I am trying to implement the StubProvider Interface as Kevin Poorman does in his blog here: Kevin's Month of Testing Blog - Part 3 of 3 and on line 3 I am getting the error 'Missing return statement r …
AstroLovesCodey's user avatar
0 votes
Accepted

Portal Account Owner Has No Role

I have been able to successfully create portal users in my org in the following manner. I don't know if it will work for others, but maybe help! UserRole role0 = new UserRole(); role0.CaseAcc …
AstroLovesCodey's user avatar
1 vote
2 answers
568 views

Verifying required number of attachments before allowing approval - Two ideas not sure which...

I have two different business units that are wanting ways to verify that an object as well as certain related (not necessarily master-detail) objects have a specific number of attachments before allow …
AstroLovesCodey's user avatar
0 votes

Verifying required number of attachments before allowing approval - Two ideas not sure which...

Per DouglasCAyers aka afawcett and liked by @andyinthecloud, "Your idea is correct, use @andyinthecloud declarative lookup rollup tool. The parent object will be whatever your approving. Parent field …
AstroLovesCodey's user avatar
2 votes
2 answers
1k views

Portal Account Owner Has No Role

I need to test that when I share a record, inactive users are skipped, so I must create a user with IsPortalEnabled = true. I have checked to make sure that I, the logged in user, have a role and am …
AstroLovesCodey's user avatar