Questions tagged [related-list]

A Related List is used to display the details of objects that have a relationship (i.e. a master-detail or lookup) to the current object on the page.

Filter by
Sorted by
Tagged with
5
votes
3answers
5k views

How to display the field history related list for a custom object on a Visualforce page?

I cannot find anything equivalent to: <apex:relatedList list="ProcessSteps" /> which works for Approvals. The only solution I can think of is to build a controller/extension that gets the raw ...
1
vote
3answers
2k views

CaseComment and CaseHistory relatedlist in visualforce page

I want to add CaseComment and CaseHistory related list to my visualforce page. <apex:relatedList list=" " /> What should be the value for List attribute in the code defined above. When I ...
5
votes
3answers
7k views

How to display History related list using <apex:relatedList> or by any other direct approach on a Visualforce page?

I have a custom Visualforce page at the end of which I want to display some related object list (like Activity Histories, Notes and Attachments) as they are on the standard detail page of a record. ...
0
votes
5answers
4k views

Tasks and events custom related list

Is it possible to create a custom related list for the mentioned objects? From what I've read you have to create a custom object with a master-detail or lookup relationship, I've been able to ...
1
vote
1answer
463 views

Pull OpportunityContactRole value into VisualForce Template related to an Invoice

We're setting up a workflow to notify the finance department when an Opportunity owner flags an invoice as "ready to be sent". I've got a VF email template, relatedTo="invoice", and I want to pull ...
10
votes
2answers
2k views

Sort related list with null values last

Is it possible to have a related list sorted by a specific column while displaying the empty values last? By default, these are shown at the top of the list. The field i want to sort after has the ...
7
votes
2answers
2k views

<apex:relatedList list="{!DontExistInAllOrgs__c}"/ > only solveable with Dynamic Vf components?

Does there exist a dynamic binding mechanism for the list attribute in the <apex:relatedList> element? I want to display a related list for a relationship that does not exist on all orgs where ...
6
votes
2answers
4k views

Choosing Columns to display in <apex:relatedList />

I have a VisualForce page where I'm trying to display a standard related list by using the <apex:relatedList /> tag. It seems like this should be simple, but I can't seem to find any way to ...
3
votes
1answer
2k views

Related list button not displaying on opportunity record in Lightning Experience

There is an apex button that is not displaying when the record is viewed in Lightning Experience. The related In Salesforce Classic it is working fine , When I move to Lightning, it is not ...
3
votes
1answer
4k views

VF Page to Show Related Lists from Lookup Object on my Main Object

I am trying to develop a small VF page that will eventually be added to the standard SF page for a custom object called Test_Site__c. Test_Site__c contains a lookup relationship to an object called ...
2
votes
1answer
519 views

Is there a way to react to a related list being changed in lightning?

Simply put, i need to make a lightning component, that depending on related objects to the one whose page i'm in, has different functionality. If the user creates a new related object via the related ...
1
vote
1answer
2k views

Please , how to retrieve line items to Visualforce Email Template?

I try to create Visualforce Email Template in order to send our Purchase order (BC) to the supplier So I need to insert inside the mail , all (BC line items ) I begin to create HTML+CSS code , ...
7
votes
4answers
21k views

Related list is not visible in lightning mode for a user but visible in classic mode

I am trying to convert a classic application to lightning, in the process I got stuck with a weird issue. For a particular user, one child object's related list item is not getting displayed in the ...
6
votes
4answers
13k views

Formula field on parent object to get last related list record field

I'm trying to create a formula field on a parent object that will retrieve a field from the latest record in a child related list (without apex if possible). The related list is from a lookup field ...
6
votes
3answers
20k views

Filter in Related List using fields from related record

Here is the scenario - I am showing related orders in opportunity page layout by using related list lightning component. Order is having two record types - say A and B. In the Opportunity detail ...
3
votes
1answer
1k views

Custom Object missing from English translation in Translation Workbench but not other languages

I'm trying to rename a managed package custom object's related list label through the Translation workbench using this article as a guide. When selecting "English" as the language and the ...
3
votes
1answer
2k views

Prevent related record deletion, except when parent record is being deleted

I have two custom objects, call them Parent and Child. Child has a Lookup to Parent, via Parent__c. It is not a Master:Detail relation. What pattern could I use to prevent deletion of a Child record ...
3
votes
1answer
2k views

Related Custom List With Order and Inline Editing - Many to Many relationship and Junction Object

We are using three objects in this project: Contact (for authors), Paper, and junction object PaperAuthor. Paper holds all all attributes to describe an academic paper. Paper can have many Authors. ...
2
votes
2answers
3k views

Need some help with a custom button or button override

Hopefully I can explain my question clearly here. I want to change the behavior of this button that appears on our Opportunity page: The Opportunity object has a custom rollup field that counts the ...
2
votes
2answers
2k views

related list not getting updated in Salesforce Lightning

I have two objects - Project and Resource . Project is a lookup field on Resource. So in Project there is a related list called Resources. Now in Resource , I have created a list button "Add project ...
2
votes
1answer
3k views

how to create a custom button for a custom object on a related list

I have an custom object and it has a look up relationship to Quote .Now i would like to create a custom button as "Edit All" and display it on related list..The functionality of the button should be ...
1
vote
2answers
1k views

How to implement related list like contact via code

I am trying to create a custom tab just like Accounts Tab. I was able to fetch the detail on my custom tab.but I donot have any idea how i need to get the related list like contact which is related ...
1
vote
1answer
11k views

Related list not visible to a profile

I have page layout on order object. And there I have a related list of a object. This is access able to admin, but I have a different profile who have access to this page layout but not able to see ...
1
vote
3answers
2k views

Lightning quick action - find from which object it is called

Scenario: A Lightning component that is being used as: -a quick action override of the "New" button of CustomObject1 and -as a quick action override of the "New" button of CustomObject1 in the ...
1
vote
0answers
210 views

Visualforce relatedList on Account's ServiceContracts returns unrelated Service Contracts

Scenario - Custom VF page that overrides Account View button. Simplified version below: <apex:page standardcontroller="Account" > <apex:pageMessages id="pageMsgs" showDetail="true"/> ...
1
vote
1answer
4k views

Custom Related List and Visual Force Page?

I have a custom object Installation__c which is related to accounts by a master detail relation. The related list on accounts detail page lets me create and edit records for my custom object. However ...
1
vote
4answers
2k views

Is it possible to trigger a workflow outbound message when a custom related list item is added or removed?

Excuse my ignorance in all of this. I'm not well versed in Salesforce and I've been tasked with building an integration with a web app. I've hit a brick wall on things to Google to find a solution. ...
0
votes
3answers
1k views

Is there any way to create a replica of Approval history using code?

This may sound funny. But I want to create a replica of Approval History related list that looks exactly simillar but not include submit for apprroval or recall button. Any help is appreciated.
0
votes
0answers
293 views

Visualforce Email template recipient type with multiple customized objects. Create customized object

Requirement is to use email template with visual force components, and send an email for each environment the contact is associated to. For example, contactA is associated with env1, env2, and env3. I ...
0
votes
1answer
178 views

How Do I Get A Child Record ID Into The Master Record?

Currently i'm using this simple iframe to show a visualforce page built on a custom object called Paperwork__c which is a child relationship to Apprentice__c where I currently have it displaying. &...
-1
votes
1answer
483 views

How to show Campaign History as VF relatedList component?

Campaign Related list doesn't work. It gives me this error: 'Campaign History' is not a valid child relationship name for entity Lead The code is below. Can anyone assist me? Thanks, Darko <...