1

Currently uploading images in SFMC to Portfolio. I'm searching specifically for this directory in the templates and generate images based from specific name. However, it looks like the directory has changed.

I was given the solution to use either ContentImageID() or ContentImageKey() - However that wont solve the issue in matching the image to the name as I did before.

  • Sounds a bit similar to a problem I ran into: salesforce.stackexchange.com/questions/154787/… Summary: The Image() function with AMPscript was able to be used to pull in portfolio images regardless of the base URL. – AnonWonderer Feb 14 '17 at 21:19
  • @AnonWonderer Yeah I used that and it worked. However I'm using a template that generates that image for different emails. I'm trying to find a ways to set it up to pull the right image based on the email. Sort of like match the image key value to an id. Sort of like, pull image that has the same name as this. – FreeDaGeek Feb 15 '17 at 16:35
3

Portfolio directories will automatically change based on various criteria around the number of objects, size, etc. You will not be able to reliably reference a single path for all your assets. An option may be to use the GetPortfolioItem AMPscript function. You can then reference any Portfolio item by its ExternalKey value.

GetPortfolioItem("example.gif")
  • Yeah I used that and it worked. However I'm using a template that generates that image for different emails. I'm trying to find a ways to set it up to pull the right image based on the email. Sort of like match the image key value to an id. Sort of like, pull image that has the same name as this. – FreeDaGeek Feb 15 '17 at 17:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.