I want to update images for 100+ of my App Portal catalog items. Can I upload all the .png files to C:\Program Files (x86)\Flexera Software\App Portal\Web\Backgrounds\Packages
Then run the following SQL update:
update WD_WebPackages
set ImagePath = 'pgFileName.png'
where PackageID =123
***the packageID would be changed for each item I want to target.
Is that safe enough? I don’t want to have to do this manually and I don’t fancy using the API either as I think I need ‘icon as a Base64’ value.
Thanks in advance 😊
Feb 16, 2021 04:31 AM
Yes, the steps you propose will work, and are safe..
P.S. Welcome back 🙂
Feb 16, 2021 10:10 AM
Yes, if you're setting them all to the same icon, then you can do that with a single SQL statement as you've described. You could adjust it to the following...
update WD_WebPackages
set ImagePath = 'pgFileName.png'
where PackageID IN (comma separated list of package IDs)
If you are setting a different icon for each, you could do something similar using PowerShell with a loop that reads the packageID and filename for each one, or you could make sure the file names are correlated to the individual catalog items in some way (e.g. "<packageid>.png" or "<catalog title>.png" and then you could still do this in SQL by concatenating the appropriate column with ".png".
Feb 16, 2021 10:15 AM
Yes, the steps you propose will work, and are safe..
P.S. Welcome back 🙂
Feb 16, 2021 10:10 AM
Thanks Charles, good to be back 🙂
Feb 16, 2021 08:01 PM
Yes, if you're setting them all to the same icon, then you can do that with a single SQL statement as you've described. You could adjust it to the following...
update WD_WebPackages
set ImagePath = 'pgFileName.png'
where PackageID IN (comma separated list of package IDs)
If you are setting a different icon for each, you could do something similar using PowerShell with a loop that reads the packageID and filename for each one, or you could make sure the file names are correlated to the individual catalog items in some way (e.g. "<packageid>.png" or "<catalog title>.png" and then you could still do this in SQL by concatenating the appropriate column with ".png".
Feb 16, 2021 10:15 AM
Brilliant, Thanks for that too Jim. I'll use both suggestions (as a few will have the same image, but there are some others which need their own individual image).
Feb 16, 2021 08:03 PM