Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2023 Release Wave 1Check out the latest updates and new features of Dynamics 365 released from April 2023 through September 2023
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | All TechTalks
Hey, i'm new in retail and trying to use RetailSDK for extension on Customer Search Sample. but i keeping getting this error.
Additional information: The specified type 'Contoso.Commerce.Runtime.CustomerSearchSample.CustomerSearchRequestHandler, Contoso.Commerce.Runtime.CustomerSearchSample' could not be loaded.
Here are the steps i performed:
1. Added these to the commerceruntime.ext.config <add source="type" value="Contoso.Commerce.Runtime.CustomerSearchSample.CustomerSearchRequestHandler, Contoso.Commerce.Runtime.CustomerSearchSample" />
2. Uncommented the SDKSAMPLE_CUSTOMERSEARCH section in Program.cs.
3. Run CRT test host project (Runtime.Extensions.TestHost.csproj) in debugger and execute the code.Help would be appreciated.
I leave this question for community to respond. If I find any useful information, I will respond to you to later.
This error as the Customer Search Sample Didn’t actually contain “CustomerSearchRequestHandler" Which you are trying to adding throw extension.
you can add new request handle class with name “CustomerSearchRequestHandler" in customer search sample and
Extend to handle the “CustomersSearchRequest, customerSearchResponse “ .
public sealed class CustomerSearchRequestHandler : SingleRequestHandler<CustomersSearchRequest, CustomersSearchResponse>
protected override CustomersSearchResponse Process(CustomersSearchRequest request)
// Execute the original customer search logic here.
var getCustomerSearchResultsDataRequest = new CustomersSearchServiceRequest(request.Criteria, request.QueryResultSettings);
var getCustomerSearchResultsDataResponse = this.Context.Execute<CustomersSearchServiceResponse>(getCustomerSearchResultsDataRequest);
// Execute the custom customer search new logic here.
return new CustomersSearchResponse(getCustomerSearchResultsDataResponse.Customers);
Support Engineer / Microsoft Dynamics 365 Commerce
EMEA Customer Services and Support
Business Applications communities