Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Commerce forum / order history page fil...
Commerce forum
Unanswered

order history page filter changes with created date field not working

Posted on by 85

Hi,

I have added customize code to filter order history page data.
pastedimage1664373630485v1.png

Above section i have added on order history page. I also changed call to SearchOrders api where i found filters for orders, using this method i am able to do order status and order number filter but order between date filter is not working, whenever i select date range it is returning false data instead of selected date range.
pastedimage1664373959886v2.png
Below is code snippets for search order method call.

        const input = new GetFilteredSalesOrderHistoryWithHydrationsInput(this.paging, this.props.context.request.apiSettings,
            salesOrderSeachCriteria, this.orderHistory.nextPageToken);
        
            this.viewState.isLoading = true;
            const response = await getFilteredSalesOrderHistoryWithHydrationsActionDataAction(input, this.props.context.actionContext);
 
Need help on this issue.

Thanks,

Sandeep

  • RE: order history page filter changes with created date field not working

    Hi Sandeep,

    I didn't find getFilteredSalesOrderHistoryWithHydrationsActionDataAction in e-commerce SDK, can you please share the code for the same where it uses standard code?

    If it uses the standard action "getOrderShipmentsHistoryAsync" (retail server GetOrderShipmentsHistory API) then there are no such input criteria as a date range, order status, etc.

    It pulls all order shipments from the most recent to the oldest (fixed order) using server-driven pagination where Top is your page size, and NextPageToken is a token you receive from your first and consecutive calls and use to pass in order to receive the next page of data. 

    Also, I didn't find any retail server API that takes date range as a filtering criteria, which one do you use?

    Thanks!

  • Charlotte X Profile Picture
    Charlotte X on at
    RE: order history page filter changes with created date field not working

    Hi Sandeep Tathe,

    Please wait for someone with development experience to answer this question.

    Best Regards,

    Charlotte

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans