function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Doug Heindel 1Doug Heindel 1 

Help with TabbedAccount and Desk.com needed

Hello,

We use a tabbedaccount visualforce page and I would like to add Desk.com as a tab. Below is my code and specifically the BOLD area where I attempted to add Desk.com: 

<apex:page standardController="Account" showHeader="true" tabStyle="account" >
   <style>
      .activeTab {background-color: #236FBD; color:white;
         background-image:none}
      .inactiveTab { background-color: lightgrey; color:black;
         background-image:none}
   </style>
   <apex:tabPanel switchType="client" selectedTab="tabdetails" id="AccountTabPanel" tabClass="activeTab" inactiveTabClass="inactiveTab">  
      <apex:tab label="Details" name="AccDetails" id="tabdetails">
         <apex:detail relatedList="false" title="true"/>
      </apex:tab>
      <apex:tab label="Contacts" name="Contacts" id="tabContact">
         <apex:relatedList subject="{!account}" list="contacts" />
      </apex:tab>
      <apex:tab label="Opportunities" name="Opportunities" id="tabOpp">
         <apex:relatedList subject="{!account}" list="opportunities" />
      </apex:tab>
      <apex:tab label="Open Activities" name="OpenActivities" id="tabOpenAct">
         <apex:relatedList subject="{!account}" list="OpenActivities" />
      </apex:tab>
      <apex:tab label="Notes and Attachments" name="NotesAndAttachments" id="tabNoteAtt">
         <apex:relatedList subject="{!account}" list="NotesAndAttachments" />
      </apex:tab>
       <apex:tab label="Activity History" name="Activity History" id="tabActivityHistory">
         <apex:relatedList subject="{!account}" list="ActivityHistories" />
       </apex:tab>
       <apex:tab label="Projects" name="Projects" id="tabProjects">
         <apex:relatedList subject="{!account}" list="Projects__r" />
       </apex:tab>     
       <apex:tab label="Contracts" name="Contracts" id="tabContracts">
         <apex:relatedList subject="{!account}" list="contracts" />
       </apex:tab> 
       <apex:tab label="Desk.com" name="Desk" id="tabDeskcom">
         <apex:relatedList subject="{!account}" list="Deskcom__Case__r" />
       </apex:tab>

   </apex:tabPanel>
</apex:page>


I am recieving an error:

'Deskcom__Case__r' is not a valid child relationship name for entity Account.

Any insight, help, suggestions would be greatly appreciated.

Thanks!
Doug
Best Answer chosen by Doug Heindel 1
NehalNehal (Salesforce Developers) 
Hi,

Please use workbench tool to get the relationships between your objects you are using in your code.

Use below link to login to workbench:

https://developer.salesforce.com/page/Workbench

I hope this helps.

Please mark this as a "Best Answer" if this has resolved your issue.

All Answers

NehalNehal (Salesforce Developers) 
Hi,

Please use workbench tool to get the relationships between your objects you are using in your code.

Use below link to login to workbench:

https://developer.salesforce.com/page/Workbench

I hope this helps.

Please mark this as a "Best Answer" if this has resolved your issue.
This was selected as the best answer
Doug Heindel 1Doug Heindel 1
Thanks. That was helpful. For anyone else trying to do this the correct relationship is:

Deskcom__Desk_Cases__r