API Connect

 View Only

 Retrieving appName in v5 compatible vs API Connect v10

Jeff Bennett's profile image
Jeff Bennett posted Thu October 16, 2025 02:46 PM

We have a gateway script which is retrieving the appName in order for an application to use it to restrict functions based on the application name.  We had this running in our v5 compatible gateway using the following:

 var appName = apim.getvariable('client.app.name');
apim.setvariable('message.headers.appName', appName);

In our v10 environment  (we're in the process of converting) we have it configured as:

var appName = context.get('client.app.name');
context.set('message.headers.appName', appName);

What we're seeing though is from the v5 compatible the value it returns is actually the application "title" value.  In V10 it returns the application name.  

This pic shows the difference

I'm looking for a way to retrieve the application title value in v10, since that's how these are currently set to work against. 

Chris Dudley's profile image
Chris Dudley

Yes, the v5c gateway incorrectly claimed app title was name.

The apigw is now correct.

You’ll find the app name values in analytics will now be the names (sent by the gateway) where it used to be the title.

 I haven’t checked this but have you tried client.app.title?