You need to sign in to do that
Don't have an account?
Angela_RS
Pass Data from One Custom Object to Another
Hello! :smileyvery-happy:
I'm trying to pass field data from one Custom Object to another in Spring '07. I've created a "Client" custom object and would like to pass field information to a "Service Agreement" custom object, when creating a new Service Agreement through a related list. For example when I create a new "Service Agreement" from the Client object I want the Client fields "Sales Manager Name" and "Client Address" to auto-populate in the new Service Agreement record.
I've tried the Custom Link but cant get it to work. I don't have that much of a programming background and would greatly greatly appreciate any help or step by step instructions :smileywink:
Thanks and happy Wednesday!
This is a tricky issue. You might be able to do a lookup, just depends on what object you are trying to access. It is not necessarily your programming background. I have found this door closing more than it is open. It is definitely a feature request that I would like in the product.
I posted some reference info on passing data through custom links in another discussion thread that may help you. You can check it out at: http://community.salesforce.com/sforce/board/message?board.id=practices&message.id=1956
To create a Custom Link:
1. Create a new record by clicking the "New" when you are in the new record’s tab.
2. Copy the URL from the address bar when in the edit screen, it should end in “retURL=%2F001%2Fo”
3.Click on:
Setup | App Setup | Customize.
4. Click on the type of record on which you want the link to be displayed.
5. Click on "Custom Links". Click on "New".
6. Type in your Link Label and click "Next".
7. Paste the copied URL into the Link URL field.
You can now begin customizing your URL to propagate fields on your new record with the values on your existing record.
8. At the end of your URL type in an ampersand (the & symbol) followed by the name of the standard field you want to propagate.
NOTE: The name of a field is not necessarily the same as the field label displayed on a record.
NOTE: The easiest way to find out the target field name is by using Firefox. Go to the new record using the instructions above and then right-click anywhere on the screen. Click on the form tab and then wait for the third object to populate. Click on it and all the field names will be shown. You will have to do some testing with the link to find out which field label goes with which field.
NOTE: For custom fields, you must use the field ID instead of the field name. A field ID can be found by viewing the source code of a webpage on which that field is displayed. A field ID can also be found at the end of the URL on the Edit page for that field in setup.
9. After the Name of the field, type in an equals (the = symbol) followed by the value you want entered in that field. You can type in the actual value you want propagated, such as a word or number, or you can pull data from your existing record. To pull data from your existing record the value would be the Merge Field Name.
Sample: (will create a new lead from lead object):
https://na1.salesforce.com/00Q/e?retURL=%2F00Q%2Fo&name_firstlea2=[Mail Merge Name]&name_lastlea2=[Mail Merge Name]&lea3=[Mail Merge Name]&lea14=Hot
To propagate more than one field just repeat steps 8 and 9 as needed.
My only question is how can I remove the standard New button from the related list view on the related record detail page? So users only have the single (custom) button that populates all the related fields when creating the new record?
I am SO glad this finally clicked for me, now Im a URL creating fool. All of our related records can now easily populate common fields to generate standard forms.
Greg,
You will need to edit the page layout of the object where you are creating the record from. Go to the related list and there you can remove the New button and replace it with your new custom button.
Is this due to Professional Edition limitations?
When you create the button you can choose to have it available as a custom link, a detail page button, or a related list button. If you create it as a related list button it will be available to display there when you edit the page and edit the related list.
Is Enterprise more relational database like? In that I can display all the customer information fields in all related databases, if the customer informatiuon changes, all of the relevant fields in related records are by default up to date.
With this URL setup, if a customer changes their address for example, all of the records I create this way must be manually updated or another script made to update the fields. Is the default behavior of these URLs to overwrite existing data? Am I missing something simpler that perhaps can be triggered when the edit button is clicked, it always updates all the customer information fields?
Any suggestions on how to set this in my s-control?
Thanks!