
Hi,
I'm closing incident registers which need finished his BPF into Dynamics 365 (online). The BPF contains multiple conditions and paths, so it looks something like this.
[Stage1] -- IF X -- [Stage2] -> [Stage3] -> [Final Stage]
-- IF Y -- [Stage4] -> [Stage5] /
-- IF Z -- [Stage6] -> [Stage7] /
So they all start in [Stage1] and end up in [Final Stage], but the path is different.
Could be [Stage1]->[Stage2]->[Stage3]->[Final Stage]
or [Stage1]->[Stage4]->[Stage5]->[Final Stage]
etc.
When the incident is created directly in CRM in the initial Stage1, everything works correctly.
But when we import it and closed the incident in final stage it ends but the BPF don´t .
I'm updating (via SDK update of entity) to close incident registers and finish the BPF, but not work.
Entity resolucionIncidencia = new Entity("resolutionIncident")
{
["subject"] = razon,
["incidentid"] = new EntityReference("incident", incidentid )
};
CloseIncidentRequest closeIncidentRequest = new CloseIncidentRequest
{
IncidentResolution = resolutionIncident,
Status = new OptionSetValue(statusResolucionCaso)
};
Any Idea how I can solve this in D365 online?
Would really appreciate any help!
*This post is locked for comments
I have the same question (0)The option is to look at the stage you want to set and then just update the stageid field in the record. Hope fully it will help you.