Skip to main content

Questions tagged [relationships]

Use relationships to associate an object with other objects in Salesforce.

0 votes
1 answer
62 views

I have two kinds of Accounts. Their DeveloperNames are Agency and Site. Using SOQL, how can I determine the name of all agencies related to sites? On the interactive page, I can see that a site has a ...
mankowitz's user avatar
  • 105
0 votes
0 answers
39 views

Apparently, deepcloning a SObject or List<SObject> does not remove memory reference from collection of children. Account relatedRecord = new Account(Name = 'Init Account Name'); insert ...
zanstaszek9's user avatar
0 votes
1 answer
151 views

I was playing around with a two Custom Objects, connected by Lookup relationships, and noticed that system allows to insert the children object with valid link to parent using just a standard Name ...
zanstaszek9's user avatar
0 votes
1 answer
85 views

I'm trying to get every Case (and its related objects) of the current user, to show all that data on a LWC. I'm having problems with the apex class. I know the concept of a wrapper, but I can't get it ...
kat's user avatar
  • 15
2 votes
1 answer
152 views

I am trying to insert records into the RelatedParty__c object in Salesforce. This object has two key fields: CompositeKey__c (External ID) Parent__c (Lookup to RelatedParty__c). My JSON payload ...
Deployment Failure's user avatar
0 votes
1 answer
156 views

I have a custom data model object appointments and I am trying to connect it to the standard data model object Individual. However, this doesn't seem to be possible, since the dropdown for the field ...
Patlatus's user avatar
  • 18.8k
0 votes
1 answer
585 views

I have two tables which I want to bring to Data Cloud using Ingestion API. The first table, appointments, has columns like id patient_id The second table statuses has id appointment_id status I ...
Patlatus's user avatar
  • 18.8k
0 votes
1 answer
99 views

I have a question about how to get information about relationships from Salesforce. For example, let's consider the Parent relationship on Account. I know I can get information via childRelationships....
Jack Odell's user avatar
1 vote
1 answer
203 views

In our Salesforce org, we have several custom objects with parent-child relationships, some of which are deeply nested (e.g., Object A → Object B → Object C). When we delete a record in the top-level ...
Nex Studio's user avatar
0 votes
0 answers
39 views

I have the following SOQL: public List<B25__Resource__c> getByIds(Set<Id> resourceIds) { return [ SELECT Id, B25__Parent__c, ...
Brian Kessler's user avatar
0 votes
1 answer
304 views

I'm trying to get the Leads columns from the Account object. This is the type of query I want to run, but it doesn't work: SELECT Account.Name, (SELECT Name FROM Account.Leads) FROM Account If I ...
Matthew Blewitt's user avatar
0 votes
1 answer
113 views

This soql SELECT Id, Name, (SELECT CountryISOCode__c, Name, Role__c FROM Person__r) FROM Market__c returns a row that looks like this: Id NAME Person__r a081.. C1 [{"A":"foo", &...
surfmuggle's user avatar
3 votes
1 answer
119 views

I am working on Selector Layer and I would like to avoid situations where the relationship name is passed as a String. My Goal SELECT Account.Owner.Name FROM Opportunity Approach 1: Use ...
Piotr Gajek's user avatar
  • 3,074
-1 votes
1 answer
55 views

I am preparing for advance admin of certification, one of the question is changing the master details relationship to lookup and deploying from sandbox to production. answer is to do by change set but ...
Hetal Patel's user avatar
0 votes
1 answer
70 views

Batch class: public class BatchClassForCustomer implements Database.Batchable<sObject>{ public Database.QueryLocator start(Database.BatchableContext bc){ string query='...
Pratik Bokade's user avatar

15 30 50 per page
1
2 3 4 5
37