10. Implement Converter for Read Members Pipeline StepΒΆ

A converter is needed to transform items created using the template from Add Template for Read Members Pipeline Step into entity repository objects that can be used by pipeline step processors.

  1. In Visual Studio, add the following class:
using Sitecore.DataExchange.Providers.DynamicsCrm.Converters.PipelineSteps;
using Sitecore.DataExchange.Repositories;
using System;

namespace Examples.DynamicsCrm.Converters
{
    public class ReadAccountMembershipStepConverter : ReadEntitiesStepConverter
    {
        private static readonly Guid TemplateId = Guid.Parse("[TEMPLATE-ID]");
        public ReadAccountMembershipStepConverter(IItemModelRepository repository) : base(repository)
        {
            this.SupportedTemplateIds.Add(TemplateId);
        }
    }
}
  1. Find the following line in the code:
private static readonly Guid TemplateId = Guid.Parse("[TEMPLATE-ID]");
  1. Replace [TEMPLATE-ID] with the ID for the template from Add Template for Read Members Pipeline Step.
  2. Compile the project.
  3. Deploy Examples.DynamicsCrm.dll to your Sitecore server.