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
SayasoniSayasoni 

Help with creating a new contact record from selected custom record from list view

Hi good people,

I have a custom object Unresolvedemails__C which holds emails whose email addresses are not associated with any record in salesforce.I would therefore like a user to have the option of creating a new contact from these unresolved emails by selecting a record under unresolved emails list view.Once the record has been created,the unresolved email record should move from the unresolved emails object and be logged inside the Activity History object of the newly created contact record.

Here is a link with a screenshot of what i need for better understanding.

http://imagebin.org/204380

Best Answer chosen by Admin (Salesforce Developers) 
SayasoniSayasoni

I used the following approach to resolve the unresolved emails by creating a new contact record or deleting the email.Here is a link on how my visualforce page looks like;http://imagebin.org/205230.

When a user clicks on create new contact,he's directed to a page where he's to create a new contact and once its saved,the unresolved email record is logged under the activity history of the newly created contact record and will no longer appear on the Unresolved emails object anymore.

All Answers

LegendLegend

Hi,

 

You can create a list view button on the object and invoke a class through that button which inserts the records in Contact object for all the selected records.
Same way you can move the selected records from the view of the user (by changing the owner to a Queue say: resolved or something).

 

SayasoniSayasoni

Thanks guys,I found another way of doing it & it works great.

LegendLegend

Hi,

 

It would be great if you share your approach.

SayasoniSayasoni

I used the following approach to resolve the unresolved emails by creating a new contact record or deleting the email.Here is a link on how my visualforce page looks like;http://imagebin.org/205230.

When a user clicks on create new contact,he's directed to a page where he's to create a new contact and once its saved,the unresolved email record is logged under the activity history of the newly created contact record and will no longer appear on the Unresolved emails object anymore.

This was selected as the best answer