Vulnerability in EPiServer.Forms

Try our conversational search powered by Generative AI!

Unable to select variation as a target for Best Bets


Does anyone know why when creating a Best Bet and selecting Commerce content only categories and products can be selected? When I select a variation, the OK button is disabled.

We are searching for variations so Best Bets should be applied for those. When selecting a product, we do not get search results (as we are searching for variation).

Here is the code for the search:

var request = _client.Search<VariationContent>(GetLanguage())
                    x => x.Code,
                    x => x.DisplayName,
                    x => x.DisplayDescription
                .Skip((page - 1) * pageSize)

And here is the screenshot of the best bets target selection when a variation is selected - notice "OK" button is disabled:

And according to documentation, it should be possible:

Edited, Jul 29, 2019 13:47

Does the variation have a view? Not sure if it works like that, but can imagine you can only select things that can actually be displayed.

Jul 29, 2019 15:46

My variation does not have a view. Thanks, Jeroen! 

Now the issue to solve is how to search for variants when only product is selected for the best bet.

Jul 29, 2019 19:24

Or have a controller/view for the variant that displays the product with the variant selected ;)

Jul 30, 2019 9:24
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.