We'd like to have an action that automatically uploads an image as the item picture. Is there a way to do this where we store the image in one spot and then use an action to upload the image as the item picture?
Do you have a batch of Item images you want to programmatically upload?
I think you can use a Landmark transaction in an IPA flow to upload an Item image, but the image file probably needs to be in a PfiFileStorage record. You should be able to load the image files into PfiFileStorage from an FTP location in the IPA.
With an image in a PfiFileStorage record try setting the Picture.File field to "file://YOUR PFIFILESTORAGE NAME" with the Picture.MimeType and Picture.Title fields also populated in a Landmark transaction for the Update action on the Item business class.
Hey Andy,
We would have 1 image that we would want to be uploaded for an item picture when the item is discontinued (this is currently a manual step in one of our processes).
We are currently working through automating the process. When we reach this part of the automation, we are going to go through your suggestion. I'll post an update here once we try it.