Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Unanswered

What's a standard API call to Print X Report from POS Retail D365 ?

Posted on by Microsoft Employee

Dear all,

I have a customize create new button on POS and i need to call an API to print X report so are there any API that can be used to print X report ?.

Thanks you

Dinh Cao Phuoc

  • RE: What's a standard API call to Print X Report from POS Retail D365 ?

    Hi Song,

    Thanks for your response, this would need more troubleshooting looking the logs, hence we would request you to open a service request.

    Also this question is open for  community to respond.

    Thank you!

    Kind Regards

    Surya

    Support Engineer

    Dynamics 365 Commerce

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: What's a standard API call to Print X Report from POS Retail D365 ?

    Hi Surya,

    When I use ajax to call API, server side return exception: "A server side error occurred that prevent user from logging on. This may be due to one or more reasons; the user name or password may be incorrect. Please check the server log for detailed information or contact your system administrator"

    This is my ajax function:

    $.ajax({

     url: "">usnconeboxax1ret.cloud.onebox.dynamics.com/.../GetXReport(transactionId=@p1,hardwareProfileId=@p2)

     type: "get",

     success: function(response) {

          alert("okay")  },

     error: function(xhr) {

          console.log(xhr)

      }

    });

  • RE: What's a standard API call to Print X Report from POS Retail D365 ?

    HI Song,

    Yes, API version is visible in the URL itself.

    Also "commerce-runtime analyzer" will also help you in this regard, this tool does much more than just showing the API calls, please request the tool as stated in the below article.

    community.dynamics.com/.../looking-inside-retailserver-crt-sql-with-commerce-runtime-analyzer

    Thanks and Regards

    Surya

    Support Engineer

    Dynamics 365 Commerce

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: What's a standard API call to Print X Report from POS Retail D365 ?

    Hey Surya,

    How about  API-Version?, If API - version of retail grown up, how can we know it in tier-2 VM? Or it auto update api version in url?

    Thanks for help me and Dinh.

  • RE: What's a standard API call to Print X Report from POS Retail D365 ?

    Hi Dinh

    You can use Fiddler tool to trace the API calls.

    fiddler-capture.png

    Thanks and Regards

    Surya

    Support Engineer

    Dynamics 365 for Retail

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: What's a standard API call to Print X Report from POS Retail D365 ?

    Yes, thank you for your supporting

  • Ramune Profile Picture
    Ramune on at
    RE: What's a standard API call to Print X Report from POS Retail D365 ?

    Hi,

    It could be customization related, so I leave this question for community to respond. If I have any information, I will respond to you next week.

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