Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

create a get and post button in x++

(0) ShareShare
ReportReport
Posted on by 304

Hello All,

I have been asked to investigate the availability  to create get and post buttons inside Microsoft Dynamics Ax.. Is that possible?

Thanks,

  • Suggested answer
    nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: create a get and post button in x++

    Thanks for the info. That would not be a web service call, that would simply be navigating to an URL.

    You can run this x code to navigate to a web address:

    new Browser().navigate("some URL");

    And if you want to navigate to Youtube and search something, then simply open an URL that does that:

    new Browser().navigate("https://www.youtube.com/results?search_query=foo");

  • KareemTaima Profile Picture
    304 on at
    RE: create a get and post button in x++

    Hi Nikolaos,

    no I'm not asking for a trigger button, what I'm asking for is how to perform web service through x++, let's say for Button1 when I press it opens YouTube home page on the browser  or it takes some text in a stringEdit field and opens YouTube searching with this text

  • Suggested answer
    nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: create a get and post button in x++

    Hi Kareem,

    do you mean that you should have a button that triggers a GET and/or POST call to a web service?

    The actual requirement would then be to build this integration. And the final small step is to trigger the integration from a button.

    You should start by gathering as much information about the integration as possible. Normally you would ask for some documentation about the service that you need to call. Then search the web for documentation on how to call external services from x++. Then implement it, and finally make a MenuItemButton that runs your code.

  • KareemTaima Profile Picture
    304 on at
    RE: create a get and post button in x++

    It's still not so clear yet, but as far as I get it, as I have been told it should simply send to a URL for example a number and the get button gets its square value

  • nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: create a get and post button in x++

    Hi Kareem,

    could you elaborate what you mean by this? What's the business requirement? What would the users do with these buttons?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,099 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans