Is it possible to set URL value in Configure a URL applet from system property?

Vijay Raulaji
Tera Expert

Is it possible to set URL value in Configure a URL applet from system property?

-Currently URL is setting up as fixed value, suppose if i want to have this URL dynamically generated using system property would be great. otherwise for any changes to the URL section of the applet, i have to update URL manually on URL applet.

see example as URL set to '/mesp?id=sc_cart'

what if i want to get url values coming from system property.

 

find_real_file.png

1 ACCEPTED SOLUTION

Brad Tilton
ServiceNow Employee
ServiceNow Employee

I don't think you can make that URL dynamic, but you could do something like setting the URL to a UI page or portal page that then looks at the system property and redirects the user accordingly.

View solution in original post

4 REPLIES 4

Brad Tilton
ServiceNow Employee
ServiceNow Employee

I don't think you can make that URL dynamic, but you could do something like setting the URL to a UI page or portal page that then looks at the system property and redirects the user accordingly.

Thanks Brad. This seems to be working.

Hi Brad,

 

Thanks for your assistance regarding to set UI page to allow dynamic values from property. now i have system property to address KB article, when i use this UI page as URL applet call, KB opens up on mobile app, but it shows loading circle on the middle of the KB view

Have you come across this issue? I have tried with different KB and even clear cache, still same.

David Ha
ServiceNow Employee
ServiceNow Employee

Brad's idea works best. But alternatively there is a way to use parameterized(dynamic) URLs as well. Here's an example below

 

Use case: I want to create a smart button that allows my users to look up KB article URLs based on the short description field of my incident record.

 

Procedure

  1. In Studio, navigate to Mobile Development > Functions > Smart Buttons.
  2. Click the pop out icon to open the Smart buttons list in a tab.
  3. Click Create a new smart button.
  4. Enter the following information in the fields listed
  5. Name: View KB with Short Description
  6. Type: URL
  7. Checkmark the the relative URL checkbox (appends a short URL to the instance name)
  8. Table: Incident
  9. URL Label: View KB
  10. Relative link: sp?id=search&spa=1&t=kb&q={{short_description}}

    **To explain: you type the short URL you want to append to the instance name and add your short description parameter in brackets {{}}.

    For example, here is a static URL to find ā€œnetworkā€ on Knowledge Base. ā€œhttps://<instance_name>/sp?id=search&spa=1&t=kb&q=networkā€

    Extract your short URL and you get ā€œsp?id=search&spa=1&t=kb&q=ā€œ
    After q= , you add your {{}} for your search criteria

  11. Click save

 

More information in prod docs:

https://docs.servicenow.com/bundle/orlando-mobile/page/administer/tablet-mobile-ui/task/sg-configure...

 

Best,

David