Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
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

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans