- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
05-09-2022 10:26 AM
Greetings,
I am pulling in rasterized images into ServiceNow from URLs, and ideally I'd like to name them the URL they are pulled to eliminate some confusion. But I am not seeing a good way to do this, I have tried adding "URL${inputs.URL}" to the filename in the rasterize automation, but it appends every URL that was pulled into the filename, and the filenames get so long that I assume SN rejects them from uploading.
Also, double jeopardy, but is there a way to upload the rasterized files as images instead of attachments? Uploading as attachments does not trigger preview thumbnails and I've checked the tables in SN to verify that PNGs are allowed previews.
05-09-2022 09:33 PM
Hi @Jersey_Mankowski, You would need to process the URLs as a list. I would recommend using a sub-playbook with the ForEach function. If you pass the URL key as a parameter, it will send 1 URL to the sub-playbook for every loop.
Regarding your other question. First check the SNOW API to see it they allow it. If you find the API call create a feature request.
05-09-2022 09:33 PM
Hi @Jersey_Mankowski, You would need to process the URLs as a list. I would recommend using a sub-playbook with the ForEach function. If you pass the URL key as a parameter, it will send 1 URL to the sub-playbook for every loop.
Regarding your other question. First check the SNOW API to see it they allow it. If you find the API call create a feature request.
05-10-2022 07:40 AM
Thanks @jfernandes1, How would you call a ForEach function? I am not seeing anything in the documentation.
05-10-2022 07:25 PM
Hi @Jersey_Mankowski, screenshot below.
05-11-2022 07:49 AM
Aha, only available on sub-playbooks. Thanks @jfernandes1
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!