Questions tagged [relationships]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
33 views

Test class for batch with another class called in it: Batch has 100%, but called class only 24% coverage [duplicate]

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

Operating on summarized values in a matrixed report

Hello fellow Trailblazers I'm in a bit of a pickle here I have two tables referring to buys of gas and gas sales to customers. Each table has the same fields (date, price/liter and quantity in liters) ...
Jorge Martins's user avatar
1 vote
1 answer
56 views

How many LookUp and Master Detail Relationships we can create on a single object?

I have came through various articles saying that we create 25 or 40 Lookup relationships on an object but in my org it is showing relationship limit as 50.Can anyone confirm the right number?
Hira Khan's user avatar
0 votes
1 answer
99 views

Run trigger for an object when related objects update

Given this example trigger on the SBQQ__Quote__c object, I can log data whenever the quote is created/updated/deleted/undeleted. trigger QuoteTrigger on SBQQ__Quote__c (after insert, after update, ...
tester's user avatar
  • 55
0 votes
0 answers
51 views

How to implement FlowRecordRelation with an LWC launched flow

My LWC launches a flow, and the user has the option to pause the flow. If the flow is paused and the user navigates away and comes back to the page, there is the option to resume the flow. The only ...
Ravi Patel's user avatar
1 vote
3 answers
135 views

Query Lookup Relationship With SOQL Not Working

I have a SalesForce custom object named Loan__c which has a Lookup field called LoanLead__c and I'm trying to query that relationship with SOQL but I'm getting an error when I run the query SELECT Id, ...
Daniel Phillips's user avatar
0 votes
1 answer
95 views

unable to remove Related Contact from Financial Services Cloud Relationship Map Edit

We have a business requirement asking why the related contacts are not removable from the list within the Relationship Map Edit page. In the screen shot the related contacts are greyed out. I'm not ...
Hardy's user avatar
  • 13
0 votes
0 answers
222 views

Viewing all the accounts and opportunites assigned to a user

Currently, I have two custom objects with the following fields: AssignmentGroup__c GroupName__c: Name of the assignment group. Object__c: Name of the object whose records are assigned to members of ...
user51462's user avatar
  • 115
0 votes
2 answers
198 views

List of group members and their `IsActive` status

Is it possible to retrieve all users that belong to a certain group, along with the value of each user's IsActive field? Required output: GroupId Id IsActive A001 001 true A001 002 false A001 003 ...
user369137's user avatar
0 votes
1 answer
110 views

Query a Min Value of a Related field to a Child Object from Parent and Assign it to a new record

I am trying to find a minimum value of the field Maintenance_Cycle__c (which is a field on the Product standard object which is looked up by the Equipment_Maintenance_Item__c custom object, which is ...
ApexNoob's user avatar
0 votes
1 answer
224 views

Sending Adobe agreements on custom object relationship error

I have created a custom send for signature button for a specific Adobe Agreement in Salesforce lightning using the following: {!URLFOR('/apex/echosign_dev1__AgreementTemplateProcess', null, [masterId =...
stelts's user avatar
  • 1
-1 votes
1 answer
60 views

Contact to contacts

I'd like to be able to relate a contact to multiple contacts. For example, John is a student, and I want him linked with Teacher A and Teacher B, etc. I created a custom object "Teachers" ...
Sako's user avatar
  • 1
0 votes
1 answer
282 views

How to write a SOQL Query in Apex to Fetch the minimum amount of all the related opportunities for an account

I have an account which has related opportunities. For those opportunities I wish to get the minimum amount through a SOQL Query. How can I achieve this if I need to use only 1 SOQL Statement in Apex? ...
Amax1's user avatar
  • 109
2 votes
2 answers
156 views

sObject type 'Store' is not supported

I am new to Salesforce and currently trying to query the fields from the Store object related to the OrderSummary standard object. Store has a lookup relationship with OrderSummary object. First, I ...
RanRag's user avatar
  • 125
1 vote
1 answer
346 views

SOQL Syntax to Return Opportunity Data via Account Object

I'm trying to write SOQL to access fields from both the Account and Opportunity objects from the Account object. Specifically I'm trying to retrieve the Id and Name fields from Account while also ...
risingTide's user avatar
-1 votes
1 answer
347 views

I want to link expense(custom object ) entries with Activity object[Possible duplicate but need workarounds]

Business requirement is to link existing custom object(Expense) to Activity(Task/Event). So that they can leverage capabilities of Activity object and link all expenses to an activity. As per ...
Mayank Parnami's user avatar
0 votes
1 answer
206 views

How to insert a record and input values from the master/parent information

I have a custom object named "Property Booking" where if the status changed to approved I have to create a record for my "Quotation" custom object. The tricky part here for me is I ...
Kejer's user avatar
  • 31
0 votes
1 answer
1k views

How to import parent object field in lightning record form of child custom object?

There is Contact object as parent object and I have created a custom object called Vaccination_Information__c which is a child of Contact object. I want to include the contact name field from Contact ...
Celsy's user avatar
  • 1
0 votes
1 answer
126 views

Use field as relationship connection between objects

I am struggling with a seemingly easy task: I need to connect Account Objects with a custom object created for reviews. One Account can receive multiple reviews and they should be shown in the account ...
Fewture's user avatar
0 votes
1 answer
209 views

How do I put Salesforce child details into tabs?

My question actually comprises of two sections. I have two objects namely cases and reviews. Firstly, I want to build a one-to-one relationship between cases and reviews where cases is the parent and ...
H4shBrown's user avatar
1 vote
0 answers
417 views

OpportunityLineItem does not have a lookup field to PricebookEntry. Am I missing something?

Apologies in advance if this is a stupid question. Based on what I've seen in the documentation and various forum post answers, I believe the following relationships between Salesforce standard ...
Justin K.'s user avatar
0 votes
1 answer
252 views

SOQL Query for updating related records

I have two Objects: Opportunity and Bid(custom Object). A bid is having a lookup field to opportunity i.e. an opp. can have multiple bids. I need to update the comment field of Bid records, but the ...
Nikhil Singhal's user avatar
0 votes
0 answers
2k views

Record trigger flow not working for case and email message object

I have working to convert the workflows into flow for the below scenario with Case and email message objects. But its does not triggering properly and am not get the result. Am not sure where the ...
ajmal khan's user avatar
-1 votes
1 answer
823 views

How to relate two accounts?

My scenario that i want to achieve is to relate two accounts via a relation ship: I'm on an account, and I have to have a related list wich is "Account relationship" In this related list : ...
SF trainer's user avatar
3 votes
1 answer
769 views

How to distinguish lookup and master-detail in APEX

Is it possible to check using Apex, is relationship field type of lookup or master-detail? Schema.DescribeFieldResult.getType() for both of them returns simply 'REFERENCE'
Maciej Król's user avatar
0 votes
1 answer
312 views

Can I chain Bulk API jobs?

I have to load millions of records in a data migration process and I'm dealing with a parent object and a couple of custom child objects. After initial load, data will keep flowing, as Salesforce has ...
Stefano Luoni's user avatar
0 votes
1 answer
446 views

Cross Object SOQL Query

I have three objects Object A - Parent Object B - Child ( Lookup to A) Object C - Child (Lookup to A) B and C are not related directly, I have to fetch the fields from object C where my query is ...
Priya's user avatar
  • 3
0 votes
1 answer
997 views

why do I see controlled by parent sharing setting for contact?

Why do I see controlled by parent sharing settings for contact even though the relationship between account and contact is only lookup. I tried to create a lookup between Account and a custom object ...
prasanth's user avatar
  • 177
0 votes
1 answer
321 views

Update Parent Id In Existing Child Record

I am a new APEX learner. I created two custom objects : Book & Author, where Author being Parent and Book being child object. I created Child : book record 'Harry Potter' with Parent : 'J K ...
Ravi Bansal's user avatar
0 votes
1 answer
316 views

Junction object allows to create only one related list

I have created a junction object that relates Case (with related list "A") and Account (with related list "B") objects with each other. I want to place both Related Lists on the ...
sfuser001's user avatar
0 votes
1 answer
2k views

Can we create Junction object with one master-detail and one lookup field?

Can we create Junction object with one master-detail and one lookup field? What will be its security configuration in case Lookup relationship field is created first?
Gunjan Shah's user avatar
-3 votes
1 answer
54 views

how to edit relationship fields in salesforce [closed]

can we edit relationship fields in salesforce, like editing account name in opportunity details page without navigating to account tab. If anyone has implemented using visualforce page, please post ...
Raghu Sfdc's user avatar
0 votes
2 answers
54 views

Trigger not updating parent field with child field

I have a problem with a trigger. I have this situation: Question is: At each insertion of "Registrazione Visita", the owner's "Da pagare" field will be updated with the costs of ...
Antonio's user avatar
0 votes
0 answers
760 views

How to build a report on objects connected by a text field?

Let's consider an example data model with two objects connected with a relationship as follows: A general request is to make it possible to build any type of report that could list Custom Objects B ...
Przemysław Długoszewski-Tamoń's user avatar
0 votes
1 answer
76 views

What does referring to a child relation of an object return?

Custom Object Maintenance_Request__c has master Detail relationship to Custom Object Vehicle__c (Child Relationship Name = Maintenance_Requests). In the Following code for(Vehicle__c veh : v){ ...
Donal Shijan's user avatar
0 votes
1 answer
209 views

How To Access Field f of an Object A to which Object B is having a master detail relationship using Object B?

I have a Custom Object called Vehicle__c which has a Master Detail Relationship with Contact.(Vehicles owned by contacts); Another Custom Object Called Maintenance_Request__c which has a Master Detail ...
Donal Shijan's user avatar
-1 votes
1 answer
396 views

How to link Account with Event in a SOQL Query

I need a SOQL Query to List of Ids from Account older than 14 years and with no Events in the Last 6 Months. I tried to "link" both requests with whoId relation on Event: SELECT Id, ...
Benjamin KOSEL's user avatar
0 votes
1 answer
1k views

Is the "Delete this record also" option for Lookup relationships available only after getting the 'Cascade-Delete' option enabled for your org?

When creating a new Lookup Relationship on a custom object, there should be 3 behaviours to choose from when the parent object record is deleted (according to documentation): Clear the value of this ...
Bloke's user avatar
  • 217
1 vote
1 answer
1k views

Salesforce REST API not allowing to create records by using a reference field

I have 2 custom objects: custObj1 & custObj2. It is a one:Many relationship between the 2. I have set up a lookup relationship under custObj2. Wallet_Address__c is on both objects and is the ...
YouthDev's user avatar
0 votes
1 answer
107 views

Parent-Child relationship query

Given Account - MaintenancePlan relationship, I have this SOQL: SELECT Id, (SELECT id from MaintenancePlans WHERE Id = 'xxxxxxxxpUGAS') FROM Account Problem is that I just need to get the ...
CPS's user avatar
  • 335
0 votes
1 answer
951 views

Correct Sales Cloud life cycle understanding?

I have created a flow diagram, to represent my Sales Cloud flow understanding. Can you all tell me whether this flow/understanding is proper? I fully didn't understand the need & working of ...
Mohit K's user avatar
  • 746
0 votes
1 answer
146 views

How to use maps to get list of grand child records for a parent object

I have a parent object (Account), child object(Contract) and a grand child object(contract exceptions). Contract exceptions has master detail relationship with contract. My requirement is to fetch ...
Sudhir Balijepalli's user avatar
0 votes
0 answers
111 views

Mutation master-detail to lookup on delete/undelete

According to this materials via delete/undelete a junction object the relationship will be changed to the lookup from the master-detail. I am trying to reproduce this but with no success. Someone can ...
Kam Kaliev's user avatar
0 votes
1 answer
2k views

NavigationMixin for standard_recordrelationshipPage using a listview developername

Question: is there a way to use a developer name of listview in a standard_recordrelationshipPage? In Account object I created a custom single related list in LWC called Active Campaign Related List. ...
sFDev_newbie's user avatar
0 votes
1 answer
450 views

Create a second Record on the Same object just after an Insert

I have a custom object called Account Relation. When creating a record on this object which is related to an Account. I need to automatically create a 2nd record on another related Account record with ...
Elliott Alderson's user avatar
6 votes
0 answers
271 views

APEX Schema ChildRelationships: why have some relationships their relationshipName = null?

There is some strangeness in the some standard Childrelationships. Most Relationships are as expected, but let us take Account and Quote as an example: On Quote we have a standard lookup field Quote....
Uwe Heim's user avatar
  • 28.3k
0 votes
1 answer
415 views

Child relationship name missing

When I look at some of the Salesforce built-in objects, I notice some lookup field do not have a child relationship name defined - and I cannot set them myself. For example if I look at the "...
Alice Heaton's user avatar
0 votes
1 answer
7k views

Display related fields in LWC Datatable [duplicate]

Trying to display related fields from junction object linked to 2 objects vis Master Detail : @track columns = [{ fieldName: 'related_field__r.Name', label: 'Name', type: "text", ...
user avatar
-2 votes
2 answers
951 views

Query RecordType of a Contact from WhoId of an Event or Task [closed]

I would like a list of all task/events which are concerning to a account record and and a contact record and the contact has a specific recordtype I have the whoid, but how can I query the recordtype ...
peXeq's user avatar
  • 451
0 votes
1 answer
536 views

Query AccountId from LinkedEntityId

I would like a list of all files which are concerning to a account record, but my files have only a relation to the contacts. How can I query all files of the account? The LinkedEntityId is from a ...
peXeq's user avatar
  • 451

1
2 3 4 5
11