web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Finish Business Process Flow with Plugins

(0) ShareShare
ReportReport
Posted on by

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)
  • Suggested answer
    Muhammad Mazhar Profile Picture
    40 on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans