This blog explains about how to implement 'Upload File' feature using Macro in Service Catalog in Service Now
Use case - Provide the ability to upload a file in Service Catalog Item
Solution
- UI Macros
- Create New, Add the Jelly script code as shown below
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<b>Use the paperclip</b>
<a onclick="saveCatAttachment(gel('sysparm_item_guid').value, 'sc_cart_item')">
<img title="Attachments..." height="16" src="images/icons/attachment.gifx" border="0" width="16"/></a>
<b>to attach items to this request.</b>
</j:jelly>
- Go to Service Catalog Item, where you want to implement this feature
- Create a new variable of a type 'Macro with Label'
- Goto 'Type Specifications' tab and Choose the Macro newly created in above step
- This how it shows
Use case - Provide the ability to upload a file in Service Catalog Item
Solution
- UI Macros
- Create New, Add the Jelly script code as shown below
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<b>Use the paperclip</b>
<a onclick="saveCatAttachment(gel('sysparm_item_guid').value, 'sc_cart_item')">
<img title="Attachments..." height="16" src="images/icons/attachment.gifx" border="0" width="16"/></a>
<b>to attach items to this request.</b>
</j:jelly>
- Go to Service Catalog Item, where you want to implement this feature
- Create a new variable of a type 'Macro with Label'
- Goto 'Type Specifications' tab and Choose the Macro newly created in above step
- This how it shows
ReplyDeleteThat is very interesting; you are a very skilled blogger. I have shared your website in my social networks! A very nice guide. I will definitely follow these tips. Thank you for sharing such detailed article.
servicenow online training india
Iam very impressive your site gives the best and the most interesting information. This is just the kind of information that i had been looking for, i'm already your rss reader now and i would regularly watch out for the new posts, once again hats off to you..
ReplyDeleteservicenow online training hyderabad
well done the blog is great and it is about How to Upload a file using Macro in Service Now? it is useful for students and servicenow Developers for more updates on servicenow ServiceNow Online course
ReplyDeletewell done the blog is great and it is about How to Upload a file using Macro in Service Now? it is useful for students and servicenow Developers for more updates on servicenow ServiceNow Online course
ReplyDeleteThanks for sharing valuable information with us, keep share content on ServiceNow Online Training
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteVery well explained thanks for your blog.
ReplyDeleteservicenow online training
servicenow online training in hyderabad
Very nice article,Keep Sharing more articles with us,
ReplyDeleteThank you.
ServiceNow Developer Online Training