How to use IML function in my custom app?

Hi
I created a IML function and i want to use it in my custom app.
There is any option to use them in my custom app without create an api request and just return the IML function response?

that my IML function for example:

function daysBetweenDates(start_date, end_date) {
  // Convert both dates to milliseconds
  const start_date_ms = start_date.getTime();
  const end_date_ms = end_date.getTime();
  // Calculate the difference in milliseconds
  const differenceMs = end_date_ms - start_date_ms;
  // Convert the difference to days
  const daysDifference = Math.floor(differenceMs / (1000 * 60 * 60 * 24));
  return daysDifference;
}

and that my module:

{
	// Request to API endpoint.
	"url": "",  // Relative to base URL
	"method": "POST",
	"headers": {},    // Additional HTTP headers
	"qs": {},         // Query string
	"body": {
		// "days": "{{daysBetweenDates(parameters.start_date, parameters.end_date)}}"
	},

	// Response handling
	"response": {
		"days": "{{daysBetweenDates(parameters.start_date, parameters.end_date)}}"  // Returns API response body as an output bundle.
	}
}

but I dont get any output:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.