Unable to configure Dynamic URL in Connect-Rest

We have a requirement to configure dynamic URLs (changing depending on client enviornment) in our rest connectors.

The Connect rule doesn’t seem to allow GRS and only allows “Application Settings” rule in the URL string. Unfortunately these are limited to 5 values based on the production level on the enviornment.

There are instance where there are more than 5 enviornments and potentially more than one set to the same level ( e.g more than one “dev” or “production” enviornment).

Is there any other way to configure a URL based on a local setting on a Connect Rest?

Thanks

@Mattia.Rosellini Please look in to the below URL

@Mattia.Rosellini Hi,

You can still use GRS in Application setting. PFB

Select application setting and use an application setting rule to use in Base URL

Inside the application setting rules you can configure using GRS. PFB as per the highlighted note. You can provide a Data page in the value against each Production level

Hi @Mattia.Rosellini maybe try doing the following:

  1. Create a new class and create two properties ( URLName, URLValue)
  2. Per environment create the needed instances/records so for example on Dev (GroupCreationURL, “https://exampledev.com/api/group”), on Prod (GroupCreationURL, “https://example.com/api/group”)
  3. Create a datapage that reads the data from this class like D_DynamicURLs

In the connect-rest provide the URL instead of clicking use application settings and use : =D_DynamicURLs.GroupCreationURL

or you can leave it empty and if you are calling the connect-rest through an activity you can provide the endpoint URL form there.

Thanks,

Mohamad

@SrinidhiM This works for us. I will use the same GRS in all the production levels of the Application Setting so that effectively the URL is controlled by the underlying DSS. Thanks!

@MohamadShokor You cannot use directly a reference like =D_DynamicURLs.GroupCreationURL in the URL field. it has to reference an Application Setting first, and there you can use the reference.