Displaying image from a URL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2018 10:46 PM
Hi All
Thanks for your help in advance. I have a REST API where I am getting the infromation from an outside system. The information captured is a number and an image URL, for example https://www.xxxx.xxx/image1.jpg.
I am getting this response in JSON and then parsing it and using GlideRecord to store it in the database. The URL displays in the form the next time the form loads.
There is a after business rule that it triggering GET REST service, and I am parsing the response that ServiceNow gets back as I mentioned above.
I need to show the image from the URL in image field on the form and not the URL. For example, if https://www.xxxx.xxx/image1.jpg contains image of ACME then ACME is displayed in the image field on the form.
Please let me know if this is possible ? Thanks a lot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2018 11:42 PM
Hello Vivek,
I think this one will help you.
You can achieve it by using the HTML field and changing some HTML Sanitizer properties.
Please go through below link for further reference.
https://docs.servicenow.com/bundle/jakarta-platform-administration/page/administer/security/concept/c_HTMLSanitizer.html
Regards
Sree