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
Newcastle AU Salesforce UserNewcastle AU Salesforce User 

Creating a new contact / Creating a new account from a custom salesforce object

Hi - I have recently created a new custom object which I have called "PD Lead" and want to be able to have buttons to 'create a new contact' and another to 'create a new account' from this custom object. I then want to display the new contact in the custom object as linked.

I have been told by support at salesforce that I need to get some visual force code created to do this.  I am looking for someone to do this over coming days and willing to pay promptly. 

I have enterprise edition and based in Newcastle in Austrralia (Australian Eastern Standard Time)

Please respond to me on timh@spatialgroup.com.au if you can help with this.  I'm likely to need more assistance with other projects over coming weeks.
Ashish_SFDCAshish_SFDC
Hi , 


You would need to use a visualforce page and custom controller to accomplish this, there is no standard functionality that will allow you to have the full conversion functionality.

You could have a process similar to this by relating your objects, and have a workflow rule that fires on the creation of the second object and maps all the fields to it, but that will not be completely the same. If you want to replicate the functionality seamlessly you need to use code.

See the links below, 

Salesforce Custom Convert Lead Page and Lead Conversion Process Using Visualforce and Apex

http://blog.deliveredinnovation.com/2014/02/05/salesforce-custom-convert-lead-page-and-lead-conversion-process-using-visualforce-and-apex/

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_convertlead.htm

http://blog.wdcigroup.net/2013/11/salesforce-apex-trigger-lead-conversion/


Regards,
Ashish
Coco_SdyneyCoco_Sdyney
Not quite sure whether this will help, but just imagine, contact simply look up to PD lead.

You could create a button on PD lead object with this kind of url: https://ap1.salesforce.com/003/e?retURL=%2Fpdlead%2Fo&RecordType=XXXXXXXXXXXXXXX&ent=Contact&FIELDID=PDLEADRECORDID

Then newly created contact will be listed in PD Lead page related list.

On this case, you don't need to build VF page.