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.
- 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);
}
}
}
- Find the following line in the code:
private static readonly Guid TemplateId = Guid.Parse("[TEMPLATE-ID]");
- Replace
[TEMPLATE-ID]
with the ID for the template from Add Template for Read Members Pipeline Step. - Compile the project.
- Deploy Examples.DynamicsCrm.dll to your Sitecore server.