Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..
94 views

urlcreator for multiple clients

Hi Experts

SM 9.52

We have multi-tenant environment. Each client use his own link (web) to access to SM.

So we cannot have one link for ESS. Each client has a link.

How can we modify the urlCreator script in order for each client to have his own link.

I created another field ess.url.customer1 in the information record & tried to modify the script but it didn't work.

Please help.

Thanks

0 Likes
1 Reply
Highlighted
Trusted Contributor.. Trusted Contributor..
Trusted Contributor..

Hi

i guess you have some config to have a different URL that is related to your record.
if you create a url for IM123 using www.sm-node1.mydomain.com  and then change 1 by 2 to have  sm-node2.mydomain you should not be able to gain access to your record.

The idea here is to make your conditional structure before makeSCWebURL function (in urlCreator  sl) to put the url you want in stead of  'vars.$G_webserver_url'

You should have something like this:

switch (node):
case 1: myserver= "www.sm-node1.mydomain.com"
break;
case 2: myserver= "www.sm-node2.mydomain.com"

and so on. lastly put your variable in the function

url = makeSCWebURL(  myserver  ,doceng,filename,queryURI,"","",titleURI);


0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.