Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [inner]

The tag has no usage guidance.

0
votes
0answers
28 views

ApexCRUDviolation Fix

How to fix ApexCRUDViolation for inner query. Below is the query. proposal = [select Id, Name,(Select Id From PQConfig__Configurations__r) From Proposal__Proposal__c Where Proposal__Opportunity__c =:...
0
votes
1answer
94 views

How to get the name of the relationship for inner queries in SOQL? [duplicate]

In Trailhead we have the query to get the Contacts for the Account named "SFDC Computing", with an inner query. SELECT Name, (SELECT LastName FROM Contacts) FROM Account WHERE Name = 'SFDC Computing'...
1
vote
1answer
365 views

SOQL: Inner query on lookup field

I have a table which has self lookup for the field name parent_id. I want to get the product code for the corresponding parent_id. please let me know whats wrong with this query: SELECT p.id,p.Name,...
3
votes
1answer
632 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 ...
2
votes
1answer
2k 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
3k 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) { ...
4
votes
2answers
764 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 https://developer.salesforce.com/docs/...
4
votes
1answer
4k 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
612 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
1k 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
2k 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
3k 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
2k 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(){ ---...