Hi,
We need create incident registers which need to be in a specific BPF state 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 set the processingStageId to [Stage5] (for example) it ends up going through all the previous stages, so it looks something like this:
[Stage1]->[Stage2]->[Stage3]->[Stage4]->[Stage5]
We would like to change it to [Stage1]->[Stage4]->[Stage5]
I have tried updating (via SDK update of entity) the traversedpath attribute of the opportunity, but it doesn't update. It doesn't throw any errors when trying, but it doesn't do anything.
Update code is something like this:
Entity entity = new Entity("incident ");
entity["incident id"] = incident Id;
entity["traversedpath"] = "faa90e07-a987-4537-a7ba-53a6cdafa1fd,2431e8c8-aeb1-4d82-a6a5-0dbfa396df1d";
orgService.Update(entity);
I can see that the traversedpath is actually being updated, but it didn't change anything on the incident. Except that the go forward/go back operations started failing now -> since the system is in an inconsistent state.
Any Idea how I can solve this in D365 online?
Would really appreciate any help!