Hey there,
we have a BPF in place that starts from contact, which isn't needed at the creation of every contact, maybe never.
So I have been trying to use a plug-in to set the processID of said contact to guid.empty ( )
This is also refered to in the documentation here: Apply business process flow while creating an entity record.
I'm using the following code at the end.
Its working as expected, and the processID is set to "0000..." after creation, nevertheless the BPFrecord is still linked and shown in the contact form.
This makes me think, that dynamics handles this differently now? Is there any info about changed behavior?
Could somebody point out a different way to skip the initialization of a BPF record on creation?
Thanks!
Julian
public class PreOperationContactCreate : IPlugin { public void Execute(IServiceProvider serviceProvider) { IPluginExecutionContext context = (IPluginExecutionContext) serviceProvider.GetService(typeof(IPluginExecutionContext)); Entity target = (Entity)context.InputParameters["Target"]; target["processid"] = Guid.Empty; } }