Issue setting up my orgs custom Demo Object #223
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Okay. Let's walkthrough the setup step by step. That might help you in the future to map other objects. Firstly...for anyone reading this you should check out the configuration guide here. This goes through step by step mapping standard, custom and junction objects with samples. Given you've taken the time to raise a discussion I will walk you through it for your specific example. It sounds like you have a custom object called Demo__c that you are linking to the standard Opportunity object via a lookup relationship. Step 1 - Identify the relationship name that defines how the parent and child Objects are linked. In your case you created a custom relationship called Current Demo Record (Current_Demo_Record__c) Note down the value for the Child Relationship. In your case you called it Opportunities. This is the value we need for the Relationship Name. Note that since it's a custom field (not a standard one) we need to append __r. So the relationship name Salesforce assigns to this is called Opportunities__r. Step 2. Decide where you want to plot Demo records in the timeline. This is typically a field on the child object itself (Demo__c). Looks like you wanted the Created Date which maps to the API name CreatedDate. Step 3: Decide which field value to appear when we plot on the timeline. Looks like you want the value in the field Type2__c to be shown. Again this is typically a field on the child object (Demo__c). Step 4: Create a new metadata type record with the values from above. NOTE THAT YOU HAVE A TYPO IN THE RELATIONSHIP NAME FIELD AND YOU WERE USING OPPORTUNITY AND NOT OPPORTUNITIES. |
Beta Was this translation helpful? Give feedback.
-
Also you mention that you are trying to set this up on Account. Note that the above is the setup for Opportunity. For Account you'd have to repeat a very similar process. The Parent Object in the metadata setup should be Account. But with the above instructions it should make more sense. |
Beta Was this translation helpful? Give feedback.
Also you mention that you are trying to set this up on Account. Note that the above is the setup for Opportunity. For Account you'd have to repeat a very similar process. The Parent Object in the metadata setup should be Account. But with the above instructions it should make more sense.