Image is not loading in Virtual Agent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2023 07:53 PM
Hi Everyone,
I am working on Virtual Agent, and I am trying to get image but it is not loading.
And I am loading image URL from lookup utility.
Can someone help me?
Thanks in adavance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2023 08:25 PM
Hi @Abhijit Das7 ,
Are you fetching the image from the db_image table?
OR Is there any specific URL you are trying to hit through the Image URL link?
Thanks,
Hemant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2023 08:48 PM
As you have provided the sys_id of the image in the link image URL field that may cause the broken image.
make sure to give the proper URL, Find the below example for the same and add this piece of code in the Image URL link.
var url="https://<instance_name>.service-now.com/"+vaInputs.lookup
return url;
I hope this helps!
Regards,
Hemant
**Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.**
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2023 09:11 PM - edited 08-27-2023 09:13 PM
I have attached Lookup record above in flow, so I am getting the URL from that record. These records are coming from custom table and each record has QR Code whose URL I am putting in image utility
Qrurl - it is URL of QR code in that custom table , I have to retrieve that QR code in virtual agent.
Qrurl looks like this - https://firebasestorage.googleapis.com/v0/b/carear-hyperspace.appspot.com/o/qrcode%2FgskQ4J3ZapVmHxi...
But it changes with every record.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2023 09:31 PM
You are providing the URL of the Table?? Is QrURL fixed ??
Can you log through the script and check what exact value you are getting through QrURL?
Thanks,
Hemant