Asked by:
Auto populate contact profile picture from say Linked In in Dynamics CRM 2013 Online

Question
-
Hi,
I was wondering if this was possible?
Whether it was an existing feature that I hadn't enabled?
Is there a 3rd party solution that could achieve this?
Thanks in advance
Monday, January 13, 2014 4:27 AM
All replies
-
Hi,
I don't think there're OOTB feature for this one.
Yes, 3rd party solution will help you archive your goal. There're some useful links (idea - not full source code step by step):
http://www.linkedin.com/static?key=installation_guide_dynamics
http://niiranen.eu/crm/2013/05/linkedin-dynamics-crm-social-selling/
Hope it helps.
- Proposed as answer by Donna EdwardsMVP Thursday, January 23, 2014 7:10 PM
Monday, January 13, 2014 7:01 AM -
- Proposed as answer by Donna EdwardsMVP Thursday, January 23, 2014 7:10 PM
Thursday, January 23, 2014 7:10 PM -
Thanks to you bothFriday, January 24, 2014 9:59 PM
-
you can use plugin on create of contact.
public void Execute(IServiceProvider serviceProvider)
{
IPluginExecutionContext PluginExecutionContext = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));
// Obtain the tracing service from the service provider.
ITracingService TracingService = (ITracingService)serviceProvider.GetService(typeof(ITracingService));
// Obtain the Organization Service factory service from the service provider
IOrganizationServiceFactory factory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));
// Use the factory to generate the Organization Service.
IOrganizationService OrganizationService = factory.CreateOrganizationService(PluginExecutionContext.UserId);
if (PluginExecutionContext.Depth > 1) { return; }
if (PluginExecutionContext.InputParameters.Contains("Target") && PluginExecutionContext.InputParameters["Target"] is Entity)
{
TracingService.Trace("start");
Entity contact = ((Entity)PluginExecutionContext.InputParameters["Target"]);
TracingService.Trace(contact.LogicalName);byte[] imageBytes = Convert.FromBase64String("your image");
if (PluginExecutionContext.MessageName == "Create")
{
contact.Attributes["entityimage"] = imageBytes;
OrganizationService.Update(contact);
}}
}
Hope this helps. ----------------------------------------------------------------------- Santosh Bhagat If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"
Saturday, January 25, 2014 4:07 AM