web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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,

I have the same question (0)
  • nmaenpaa Profile Picture
    101,160 Moderator on at

    Hi Kareem,

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

  • KareemTaima Profile Picture
    304 on at

    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

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    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

    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,160 Moderator on at

    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");

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 559 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 464 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans