cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ethan_R
Super User
Super User

How to turn off Advance Lookup behavior settings in D365 CRM after wave 2 release update

Hi All,

 

I'm facing problems with a lookup field that filters based on the value of another field.

This is triggered on a field in Business Process Flow (BPF).

In-Depth: Field A (Products) must be filtered by Parent Family, which is set on field B. (Parent). As a new view, this used to show related products, but now it shows all products.

I used Pre-Search function which worked fine until few weeks on my notice (not sure how long was this un-noticed).

 

I assume this might be something related to Advance Lookup and I do not see any toggle to disable it. Reference - Link.

Ethan_R_0-1640098117846.png

 

When I run the same code now, it says "No Records Found..." even though there are records available.

 

Kindly advise what has changed.

Thanks

 

4 REPLIES 4
rampprakash
Super User
Super User

Hello @Ethan_R,

 

Can you please let me know weather  you have tried with Field Properties 

 

rampprakash_1-1640102996265.png

 

 

If yes can you please let me know weather you are using below code or not?

 

 

 

 

function preFilterLookup() {
    Xrm.Page.getControl("lookupfieldname").addPreSearch(function () {
        fetchXml = "<filter type='and'><condition attribute='fieldName' operator='eq' value ='FILTERVALUES'/></filter>";
        Xrm.Page.getControl("lookupfieldname").addCustomFilter(fetchXml);
    });

}

 

 

Because i tried above code and it working as expected.

 

If the above solution not works you can turn off the behavior 

 

rampprakash_0-1640105318434.png

 

Clear Information about Turn On and Turn Off here : https://powerapps.microsoft.com/en-us/blog/advanced-lookup-experience-in-model-driven-power-apps/

 

Let me now if you need more help for the same

 

Please mark as Answer if it is helpful and provide Kudos


Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
Blog : https://microsoftcrmtechie.blogspot.com

DeviKrishna
Super User
Super User

Hi @Ethan_R ,

 

Did you try entering the default values manually.

Minimum characters 2 and delay 250 ms.

-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.


Regards

Devi

 

 

 

 

Hi @rampprakash ,

 

I do not see the toggle for Advance Lookup (since the updates have applied through Microsoft and not manual early access).

Also the reason I want to use this filter, I want to use it on Business Process Flow and not on the form.

The Code you mentioned is standard and works everywhere.

Whereas, the execution differs from field present in BPF.

 

Do let me know if you find anything else.

 

Thank you

Hello @Ethan_R,

 

As per your chat its enabled already, try doing the below Scinario to make it work.

 

1. Navigate to https://admin.powerplatform.microsoft.com/

2. Select the Respective Environment which you are working

3. Open the Environment

4. Click Settings

5. Expand Product and Select Behvaior

rampprakash_0-1640106636804.png

6. Scroll to Last and Try Implementing Lookup behavior like this

 

rampprakash_1-1640106709949.png

As per the Screen shot after entering 2 Characters in 250 ms it will show the Results.

 

Let me know if it is helpful.

 

Please mark as Answer if it is helpful and provide Kudos


Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
Blog : https://microsoftcrmtechie.blogspot.com

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (2,579)