Wednesday, May 20, 2015

How to Create a Module based on URL ?


This blog explains about how to create a Module using arguments or How to test only Catalog item ?

Scenario : Create a catalog item,  User don't need to 'Maintain items' Module every time to test the catalog item.

Steps

- Go to Maintain Items under Service Catalog

-  Search for the catalog item, for which you want to create a module, Press Ctl + Mouse click on the Name of the catalog item, That will launch the item in a new tab

- For example, below is how the URL looks like, once you open the catalog item in a new window

https://fmdev.service-now.com/sc_cat_item.do?sys_id=3ec4fde02bcc06001f1847f119da15cc&sysparm_view=item&sysparm_record_target=sc_cat_item&sysparm_record_row=1&sysparm_record_rows=175&sysparm_record_list=type%21%3Dbundle%5Esys_class_name%21%3Dsc_cat_item_guide%5Etype%21%3Dpackage%5Esys_class_name%21%3Dsc_cat_item_content%5Esc_catalogs%3DNULL%5EORsc_catalogsDOES+NOT+CONTAIN0b22fd2ad7021100b9a5c7400e610319%5EORDERBYDESCsys_updated_on

- Copy only the URL excluding https://xxxxx.service-now.com as shown above highlighted. URL should looks like below

sc_cat_item.do?sys_id=3ec4fde02bcc06001f1847f119da15cc&sysparm_view=item&sysparm_record_target=sc_cat_item&sysparm_record_row=1&sysparm_record_rows=175&sysparm_record_list=type%21%3Dbundle%5Esys_class_name%21%3Dsc_cat_item_guide%5Etype%21%3Dpackage%5Esys_class_name%21%3Dsc_cat_item_content%5Esc_catalogs%3DNULL%5EORsc_catalogsDOES+NOT+CONTAIN0b22fd2ad7021100b9a5c7400e610319%5EORDERBYDESCsys_updated_on


- Now Right click on the application where you want to create a new module

- Create New Module 

- Choose 'Link Type' as 'URL(from Arguments.)

- Provide a proper name to the Module

- Paste the above copied URL into 'Arguments' field.

- Refresh the URL and search for the Application, you will see a new module created in above step, If you click on you will see a catalog item, Enter the details and click on 'Try it'



No comments:

Post a Comment