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 |
A lookup field is a reference to an object in Salesforce that is is more flexible than a master detail relationship.
1
vote
Accepted
record id is not searchable in standard salesforce lookup dialog
Salesforce has several kinds of indexes. The two types of indexes that are important here are the search index and the database index. The search index keeps track of searchable phrases in a record, s …
1
vote
Accepted
How many LookUp and Master Detail Relationships we can create on a single object?
The old default used to be 25, and you'll likely still find older articles and such that describe this limit. This was increased to 40 at some point. However, an organization can request more by follo …
0
votes
Accepted
Create generic object
If you know the name of an sObject, it's as simple as:
sObject record = ((sObject)Type.forName('Schema',objectName).newInstance()).getSObjectType();
If you have multiple sObjects in a list, you can s …
2
votes
Accepted
Fetching records where the field value is null or similar to SOQL inner query
This won't work. The error is telling you that you can't have the outer parentheses in your query:
SELECT Id,Partner__c
FROM Promo_Association__c
WHERE Partnership__c =null OR Partnership__c IN (
…
1
vote
Batch class to update a lookup field on CASE Object
You're returning a query from the Case object, then trying to assign the values to a User object. This causes the execute method to be skipped. You need to change your query to use the User object.
gl …
1
vote
Accepted
Item with lookup to Brand query
To go up to a parent record, use Parent__r.Name; to go down to children records, use (SELECT Name FROM Child__r).
As such, I believe you're looking for:
SELECT Id, Name, Brand__r.Name from Item__c
Th …