I am using DataPower API Gateway.
Original Message:
Sent: Sun March 12, 2023 11:55 AM
From: Jeroen Willems
Subject: Invoke URL
Main question is as Steve indicates. Which gateway are you using? Depending on the answer use
var name = require('local:///isp/policy/apim.custom.js'); // v5-Compatible Gateway
var name = require('apim'); // DataPower API Gateway
------------------------------
Jeroen Willems
Integration Architect - Managing Partner
Integration Designers
Original Message:
Sent: Fri March 10, 2023 11:05 AM
From: Steve Linn
Subject: Invoke URL
Hi Filipe,
Which gateway are you using? v5 compatible versus api gateway? I don't think what you have is incorrect. Have you tried simply setting the variable to newPath?
Regards,
Steve
------------------------------
Steve Linn
Senior Consulting I/T Specialist
IBM
Original Message:
Sent: Fri March 10, 2023 09:53 AM
From: Filipe Ventura
Subject: Invoke URL
Hi Steve,
Thanks for your reply.
Can you check.
- I create a variable at a gateway script
- I use at invoke like

- Have I failed something?
Thanks in advance
------------------------------
Filipe Ventura
Original Message:
Sent: Fri March 10, 2023 09:27 AM
From: Steve Linn
Subject: Invoke URL
Hi Filipe,
If you've set a variable into context that contains your url, the invoke target-url property should be specified as $(yourvariablename). Any variable reference in the property will have its value substituted, and the property can have as many variable references as you need to meet your requirements.
Best Regards,
Steve
------------------------------
Steve Linn
Senior Consulting I/T Specialist
IBM
Original Message:
Sent: Fri March 10, 2023 05:26 AM
From: Filipe Ventura
Subject: Invoke URL
Hi everyone,
I am using the policy invoke but I need to use a custom url.
Normally I use target-url and request path, but this time I need something different.
So I set a variable by apim lib but I can't used it or I don't know to do it.
Can someone help me out with this?
Regards
------------------------------
Filipe Ventura
------------------------------