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)

Find leads without the correct BPF

(0) ShareShare
ReportReport
Posted on by 140

We have two BPFs for leads.  The first is a marketing process to prequalify the lead.  Once this is complete and the lead is assigned to sales, it should switch to a sales process.  This worked fine in CRM 2016, but was broken when we upgraded to D365.  The Sales BPF had to be created manually (which Sales people struggle with). 

We have implemented a workflow that creates the new BPF at the correct time, so the issue is fixed for all leads going forward.  However, there are many leads in the system that don't have the Sales Process active.  I should be able to correct this by creating a one-off workflow to create the new BPFs.  However, I cannot work out how to write the workflow filter to select all the records without the Sales BPF.

Does anyone have any ideas of how to structure an Advanced Find query to return all records that do not have a specific associated BPF?

Many thanks,

Rob

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    BharatPremji Profile Picture
    2,485 on at

    Hi Rob,

    In the Advanced Find editor, select Leads, then in the Select Filter, go down to the Related section, you should see stage Id (Process Stage), you may be able to filter by using the Process Stage Name there

    Hope that helps

    Regards

  • Rob Pearce Profile Picture
    140 on at

    Thanks Bharat.  

    I tried that, and I think it would work if there were no other BPFs for the lead entity.  Unfortunately, even if there is a Sales BPF active, this field can still return the marketing BPF stage name.  I'm not sure what the logic is for this field if there are multiple BPFs open.

    Rob

  • Verified answer
    BharatPremji Profile Picture
    2,485 on at

    Hi Rob,

    How about flipping the logic.  

    Remove all the filters in the Advanced Find and add the Process ID to the view columns.  You should then be able to see the GUID of the BPF's, from there you can hopefully work out which one is the Lead BPF and which one is the Sales BPF.  Then simply order the Advanced Find and bulk update the records

    Bharat

  • Suggested answer
    SCV Profile Picture
    1,004 on at

    With the introduction of Concurrent Business Process Flows in Dynamics 365 I am not sure how you define the "Correct" Business Process flow. If there is more than one BPF different users can be working on all of them concurrently.

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi Rob,

    As per the new changes in the BPF , you can have multiple BPF instances for a record. In addition to that, CRM would not allow you to create 2 instances of the same BPF.

    "Keep in mind that no two instances of the same business process flow definition can start on the same record"

    https://blogs.msdn.microsoft.com/crm/2017/03/28/concurrent-business-process-flows-in-dynamics-365/

    Considering the above limitation, how about running the workflow to create the required BPF [Sales BPF] on all the leads record without checking if the lead already has the SalesBPF or not. This will create the BPF for the record which doesn't have SalesBPF and error on the one which already has SalesBPF.

    For the records which has the SalesBPF but not active, you can do a direct advance find on the SalesBPF for inactive record and then activate the records.

    6254.BPF1.png

  • Rob Pearce Profile Picture
    140 on at

    There isn't really a correct BPF.  Marketing should use the marketing BPF, and Sales, the Sales BPF.  I can control their view with role permissions.  

  • Rob Pearce Profile Picture
    140 on at

    I looked at this solution, but got no returns.  If the lead shows a BPF as "not started" then I do not think the record exists so will not be picked up by looking for inactive records.

  • Rob Pearce Profile Picture
    140 on at

    Hi Bharat,

    This sounds like it should work if I can figure out how the Process ID deals with records with multiple open BPFs.

    I resolved the issue in the end by having a colleague write a SQL query to return leads that had no associated Sales BPF.  From that list I could tag the records ands create the BPFs.  

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