What's the deal with Deno? We talk with a major contributor to find out. Listen now.
13

If you are in Visualforce, you can use the URLFOR() function in conjunction with the $Action global variable to generate this URL. The URLFOR function will automatically add the _CONFIRMATIONTOKEN to the end of your URL. <apex:outputLink value="{!URLFOR($Action.OpportunityTeamMember.Delete,member.Id)}"> <apex:outputText value="Delete"/> <...


10

Indeed Visualforce reports the List attribute as only supporting Literal values. Fortunately it is indeed possible to achieve what you want via Dynamic Visualforce. I found an example of this in the Salesforce Visualforce Developers guide here. In the code sample you can see the RelatedList component being created and the List attribute being set dynamically....


9

Have you searched on google or force.com before ask here?? check this out<apex:relatedList> sample <apex:page standardController="Account"> <apex:pageBlock> You're looking at some related lists for {!account.name}: </apex:pageBlock> <apex:relatedList list="Opportunities" /> <apex:relatedList list="...


8

Try to use the following formula of type "Text": IF(ISBLANK(FieldToSortAfter__c), IMAGE('/s.gif',' ') , ' ' + TEXT(FieldToSortAfter__c)) The formula checks for the blank value and if it is then it puts a transparent image so nobody can see it on the page. But if the field has a value then just puts a space before it so the sorter "thinks" that this value ...


8

You can do something like this with standard functionality. It doesn't fit your requirement perfectly, but may work. Create a roll-up summary field that counts the number of detail records. Create a validation rule that prevents the user from changing the opportunity stage until the number of detail records is greater than 0. This lets you create the ...


8

Hey looking into your question this is the solution for you. You need to use AttachedContentDocuments <apex:page standardController="Account"> <apex:relatedList subject="{!Account.Id}" list="AttachedContentDocuments" /> </apex:page>


7

You named the Related List Label "Supplier Relations Escalation", so that is what it is called on the Page Layout. You can see it on the far right of your options.


7

Currently you cannot view more than 4 columns in lightning related view. There is a idea currently and status shows as Currently in development. Hopefully it should be available soon. Idea link You can select which columns you would like to see in related list from page layouts. Goto: Setup->Object Manager-> Select the object-> page layouts -> Edit the ...


6

Try creating a new Javascript button, type should be "list button" (last option, without checkboxes). Call it "New Payment". Implement your check there, something like if({!Opportunity.Product_Rollup__c} == 0){ alert('Uh oh'); } else { location.href = '(url to make new Payments here)'; } Finally go to the Opportunity page layout (all of them if ...


6

This is a many to many object model which will utilize a 'junction object'. Employing a pair of lookups defined on the junction object with a structure that looks like this: Author (Contact) <-- lookup Paper_Author__c lookup --> Paper__c This model supports an Author on many Papers as well as a Paper having many Authors. It also will give you the ...


6

Content of <apex:relatedList> will match what your user would see for same record on standard page layout. So your best choice is to configure the list on page layout. Remember that if you still don't see the fields you expect, the standard caveats apply: do you have rights to read on the fields from the related list? if the fields are lookups - do ...


6

You can get the API Name of the child relationship as follows via Execute Anonymous: for (ChildRelationship relationship : SObjectType.Request__c.getChildRelationships()) if (relationship.getChildSObject() == Matter__c.sObjectType) system.debug(relationship.getRelationshipName()); Copy this value verbatim and replace Matters__r.


6

This is one of the most confusing aspects of relationship queries in SOQL. The FROM clause in your subquery does not specify the name of the child object. It specifies the name of the relationship, which is configured as part of the lookup or master-detail field on the child object and may or may not look like the child object's actual API name. You can look ...


6

You can change the Related List Label by modifying the Related List Label field on the field that references the parent object. In your case, if you go to the object CaseBugJunctionObject, edit the field that references the Case object, you can change the Related List Label. Note that this label must be the same for all layouts that this Related List is ...


5

I can replicate the same thing that you are observing. I have a "workaround". I was able to reverse engineer the Go to List >> links on the related list when there are more than the default number in the list (more than 5 for me) on the page. I built the following URL: https://na15.salesforce.com/007?id=00Qi0000002djnG&rlid=RelatedHistoryList&...


5

Parent objects can't look 'down' to child objects in that way for Lookup relations. You can look 'up' to a parent (from the Child), but not down to the child (from the Parent). In fact, if you go to create such a formula, you wouldn't even see the relation to the child object. You can look down to children when the relationship is Master/Detail, but only ...


5

For notes and attachment use following name in tag:- <apex:relatedList subject="{!account}" list="NotesAndAttachments" /> For Activity History: <apex:relatedList subject="{!customObject__c}" list="ActivityHistories" /> For native object History Ex: Opportunity: <apex:relatedlist list="OpportunityHistories" title="Opp History"/>


5

Since the lookup is from Partner to Contact, you'll see only fields on the "child" side of the relationship. If you go to Setup > Customize > Contacts > Page Layouts, you can add both related lists (Billing Partners and Business Partners, or whatever you called them) to your contacts' related list section. From your example, Y.Foreign_Key = X.Primary_Key, Y....


5

You may consider trying this: <apex:relatedlist list="ChildObject__r" title="Child Records" rendered="{!$ObjectType.ChildObject__c.accessible}"/> This would check if the loggedIn user has access on this object. Let me know if this works. Note : Here ChildObject__c is the API name of object.


5

I think you can achieve it by doing following : Create two lookup of Account object (Parent object) on Contact (Child Object) On child object you can make these lookup visible based on record types. These two lookups on Contact object will show two related lists on Account object. I hope with this you would be able to achieve two related list with out of ...


5

The reason for this issue is that the relatedList is not named "Campaign Histories" Use: <apex:relatedList list="CampaignMembers"/> apex:relatedList list= values have to be valid relationship names taken from the schema. The friendly name as shown to the user is confusingly only tangentially related to the real relationship name.


5

Currently, no. That @wire adapter does not allow relative parent (flexipage record Id). On the roadmap (no ETA) is the lightning:relatedList base component, so whenever that is released we might be also supplied the corresponding @wire adapter for custom use. See it near the bottom here: https://help.salesforce.com/apex/HTViewHelpDoc?id=...


4

What you are talking about is a "many-to-many" relationship. Each student can do multiple sports, and each sport can be done by multiple students. The most natural way to implement this in Salesforce is through a junction object. http://help.salesforce.com/HTViewHelpDoc?id=relationships_manytomany.htm&language=en_US This will allow you to see the ...


4

In this scenario, rather than creating some custom code to do that, have you considered just setting a Sort Order on the Status field to group all of your Active Contacts at the top of your related list and push your Terminated Contacts to the bottom of the list. On your page layout, there is a way to set your Sort By field for your related list. This ...


4

Something has simple has this could work: <apex:page standardController="Opportunity" showHeader="false" renderAs="pdf"> <apex:pageblocktable value="{!Opportunity.bucketRate__r}" var="b" title="Bucket Rate Factoring Fee" > <apex:column value={!b.levelname__c} /> <apex:column value={!b.lowdays__c} /> <apex:...


4

Solved the problem. The so called "RelatedListId" is the Id of the custom field of the Master-Detail relationship on the detail object. We were able to query this Id with the tooling-api described by Andrew Fawcett. http://andyinthecloud.com/2014/01/05/querying-custom-object-and-field-ids-via-tooling-api/ After implementing the Tooling API Class and ...


4

Currently its not possible to sort open activites.Here is the idea https://success.salesforce.com/ideaview?id=08730000000BqX6AAK Workaround : Create a list button on Task with URL value as /007?id={!Account.Id}&rlid=RelatedActivityList Add the button to Open Activities Related list of Account Pagelayout.Then on Click of button it will open new page ...


4

Related lists are lists of records that are directly related to another record. They are created automatically when a lookup field is created on an object, and there are many standard related lists, as well. For example, an account may have many contacts related to it. The account is called the parent record, and the contacts are referred to as children. The ...


4

You forgot the Position p object in your loop. Try : List<Position__c> Positions = [SELECT Name, Department__c, Job_Matching_Title__r.Name, Job_Matching_Title__r.Salary_Range_Avg__c FROM Position__c WHERE Department__c = :StringDepartmentID]; for (Position__c p :Positions){ system.debug('Average Salary: ' + p.Job_Matching_Title__r....


4

You would need to go and edit the page layout for the object you want to do this for. Find the Open Activities and Activity History related lists. Click on the Wrench Icon, and go to the Buttons section. There are checkboxes for all the buttons. Just uncheck the buttons you do not want to show. EDIT Thanks to @BarCotter, you also need to update the ...


Only top voted, non community-wiki answers of a minimum length are eligible