Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How do I filter a drop down field when it is within a Business Process Flow?

Posted on by Microsoft Employee

Background: 

Due to legacy data I was forced to split a drop down field to contain 2 categories of values.  One named "Tech Support" and the other named "Customer Care".  Originally the name of the field was "Issue Types".  This field was pulling the data from a custom entity, so I created a new field within the custom entity and named it "Issue Category".  I added in the categories for existing data and added some new issue Types.  On the Form, originally there was just the one field, but now I have two of the same fields each being filtered by their respected categories.  One field Labeled "Tech Support" with a drop down list only displaying the values within that category.  And the same goes for the "Customer Care" field which is only showing the "Custom Care" category Issues.  I thought everything was ok until , some pointed out that they are seing Customer Care options  in the Tech Support field.  I looked at the field and everything looked fine to me.  But then someone was smart and specifically told where it was happening.  In the Business Process Flow, ugggggg, thinking I could just go in the and apply the filter and be done with it, no, not on this one.  

Request for assistance:


Could someone help me with some JavaScript that would allow me to filter the drop down menu .  I will only need to have the "Tech Support" filter applied.  

details:

Field name: "new_technicalsupportissue"

Field data type: Lookup

Target Record Type: "Issue Type"

Filtered on System view: "Technical Support Issues"

Proccess Name: "Phone to Case Process - Customer Care"

Category: Business Process Flow

Primary entity: Case

Stage: Investigation/Discovery

Category: Investigation/Discovery

Step: Data Step #7

Any help would be greatly appreciated.

Thanks

*This post is locked for comments

  • Verified answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: How do I filter a drop down field when it is within a Business Process Flow?

    Hi,

    You can refer Dependent Picklist generator :

    [View:https://crmoptionsets.azurewebsites.net/:320:50]

    Once you have code with you, you can refer it using header_process_<attribute name> or header_<attribute name>

    [View:https://www.inogic.com/blog/2014/07/how-to-apply-script-on-header-fields-and-bpf-fields/:320:50]

     

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: How do I filter a drop down field when it is within a Business Process Flow?

    Hi,

    Can you share a screenshot of your form, please?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans