Building an Infor M3 H5 app from a description, and what it costs

· Stewart Rutledge

Two questions come up in almost every demo of Loupe Code. What does it cost to build an Infor M3 H5 app this way, and does it really work? This article answers both with real examples: the prompts we wrote, what came back, how long it took and what it cost.

An H5 app is a screen, or a few screens that belong together, that runs inside M3 H5 next to the standard programs. It reads and writes M3 through the M3 APIs as the person using it. Companies usually have a developer build them with Infor's H5 SDK, and that's where the waiting starts. With Loupe Code you describe the app instead, and it's built from your own M3.

What you write

The description is the whole specification, so it pays to be concrete. Say who the app is for and what they do with it, list the fields and actions you need, and name the M3 programs or transactions if you know them. If you don't, describe the data and Loupe Code finds the transactions in your environment. When there's more than one candidate, it asks you which one you meant.

Here's the prompt behind an order dashboard we built:

"A dashboard that searches for customer orders in M3, with filters for customer, status, and range for order and delivery dates. At the top, I want a graph showing total orders with delivery dates, grouped based on the time span to only show a reasonable number of data points. I also want counts for each order type, displayed in individual boxes with totals. The boxes should be clickable, and filter the list on those order types."

A prompt can be much shorter than that. This one sentence gave us a working item search: "An item search that displays stock level per warehouse, production structure and supplier info under each item." Nothing was set up beforehand, no template and no workflow.

You can also attach screenshots of an old screen or a CSV of the data the app should show. They're used for that build only and never stored. And if you already have an app that does the job badly, Rebuild an existing project uses it as the reference for a new one. We cover that in moving old H5 apps and scripts to the v2 API.

What comes back

Before anything is built, Plan shows you in a few sentences what Loupe Code intends to build, and you can change the prompt before you confirm. A build then takes a few minutes.

What comes back is built from your environment's metadata: your tables, your transactions and your custom fields, under the names they have in your M3. Loupe Code works out which APIs to call, the layout, the search and the filters. On the customer overview we built from this prompt, it also added a way to open the app straight from the Customer Master (CRS610):

"Build a customer overview. I search for a customer and see their details, credit, open orders, invoices and the items they buy most. From an order I want to see its lines."

The finished app opens in a live preview that runs against the M3 environment you've selected, with your own M3 permissions. Requests lists every M3 call the preview made with its input and output, which is the quickest way to see why a screen shows what it shows.

Changing it with more prompts

The first result is usable, but it's rarely the final version. You change the app by saying what should be different, one change at a time, and Loupe Code changes that and tells you what it did, with a diff you can open.

The order dashboard went through a few more prompts after the first one, to add bookmarks and order lines. The customer overview started from one paragraph and grew from there. A good rule is to describe the outcome you want, such as "the customer search should open a browse dialog on F4", and leave the code to Loupe Code.

How long it takes and what it costs

These are the three examples above, with the time and cost each took.

  • The order dashboard: about 30 minutes from the first prompt to the version with bookmarks and order lines, and about 13 EUR. It has search including on related order lines, a bar chart you can drill down in, the clickable order type counts and working bookmarks.
  • The customer overview: about 40 minutes and about 12 EUR, including build time.
  • The item search: one sentence and one build.

There's an upfront cost for the first prompt, because that's where the app is set up and the most code is written. After that, additional prompts typically land at 1 to 2 EUR.

Loupe is 10 000 EUR a year for the whole company, with as many users as you like, and that includes Loupe Code. AI usage is billed close to cost: what the AI supplier charges plus what it costs us to run it. Administrators can set monthly limits for the company and for each person.

What you get at the end

What Loupe Code produces is a standard H5 app, of the same kind a developer would have written with the H5 SDK. It installs in H5 the ordinary way, with no extra hosting, no third party in between and no extra licences. Anyone with an M3 login can use it, and the people using it don't add to the cost.

Around the app you also get the things a project usually runs out of time for:

  • Access by M3 role. Every app checks M3 roles before it opens, using the roles that already exist in your environment.
  • Translations. Add a language and the app is translated. Each user sees the language they have in M3.
  • Tests. Record what the app does today, so a later change can't quietly break it. More on that in keeping AI built M3 apps maintainable.
  • Releases and git. Freeze a version for your users while you keep working, and sync the source to your own git repository.

If you stop using Loupe, the apps keep working. They're standard M3 and the source is yours.

What to expect from the first build

The first build follows what you wrote. If the prompt doesn't say how a status should be shown or which date to filter on, Loupe Code picks a reasonable default, and you correct it with the next prompt. That's why one screen per prompt works best, and why it pays to name the programs and fields you care about.

It also only knows what your environment has. If the data an app needs isn't reachable through an existing M3 transaction, the app needs one first, and that's an XtendM3 job. We go through that in XtendM3 tables and transactions without a developer. If what you need is a change to a standard M3 screen, an H5 script is the cheaper choice; see H5 script examples for Infor M3.

Questions we get

Do I need to be a developer to build an H5 app this way?
No. If you can describe what the screen should do, Loupe Code can build it. A developer can still read and change the code in the Code view, and their edits are kept.

Can we try it on our own app idea?
Yes. Send us a few sentences about the app and we'll build it with you in our environment, free.

Got an app idea you've been sitting on? Send it to hello@loupeapp.net, and read more about the H5 app builder in Loupe Code.

This article started as a post on LinkedIn. Join the conversation there.

Got something on your M3 backlog?

Send it our way and we'll show you what Loupe Code does with it, on your own M3.

Building an Infor M3 H5 app from a description, and what it costs