The tag has no usage guidance.

learn more… | top users | synonyms

3
votes
2answers
61 views

Unable to query child record through inner query

I have custom objects called 'Project' and 'Status Report'. Project is a parent and Status report is child in a master detail relation ship. With in trigger i wrote below query and getting the below ...
1
vote
1answer
32 views

Use inner classes in another inner class

Apex classes can’t be static. And I also heard that 'all nested classed behave like Java static nested classes.' In this case it should be possible to refer Inner1 from Inner2. But it fails with ...
1
vote
2answers
131 views

Get size() on inner query

Trying to write a trigger to count records in a related list, then update a custom field with that count. Here's what I have so far: trigger CountOpptys on Account (before insert, before update) { ...
1
vote
2answers
88 views

Can interface have inner classes or interfaces?

Can interface have inner classes or interfaces? Looks like it is not possible and the answer is no, however it is not mentioned anywhere in the documentation ...
4
votes
1answer
798 views

How to make a “join” between two tables?

I have a table Product2, witch contain products. I have a table PricebookEntry, witch contain price for products. How can i make a request for someting like : SELECT Id, desriprtion, title, [...] ...
2
votes
3answers
286 views

Salesforce large relationship (inner) query

I have a task to perform a fairly large and specific data removal. The goal is to remove all EmailMessage objects that have a parent Case record whose status is closed, from BEFORE a certain date. ...
4
votes
2answers
557 views

Queueable interface in salesforce not allowed on inner class?

I am trying to implement new Queueable interface of Winter 15 to allow chaining. But on one of my orgs it gives error as Invalid interface name specified. While same works properly on second org. ...
2
votes
1answer
667 views

Display list of inner class objects from VF controller

I have the following class, that implements 2 custom inner classes, with a list of one type inside another class. What this does is do a callout to an external REST service, gets back a JSON response ...
4
votes
1answer
2k views

How to do inner or sub-query for the same object in SOQL

Currently I'm facing an issue to select the value from the same object. below here i provided the query. I'm migration java-j2ee application to a salesforce, thisbelow query works in my sql. I'm ...
4
votes
1answer
1k views

Weird issue with inner class not being covered via Test Class?

I have a test class that is basically covering a class which has structure like public class classA { public class classB implements Triggers.Handler { public void handle(){ ...