June 30, 20205 yr That's what the "insert from URL" script step is for. But we'd have to know more about what the source URL / web site does or allows to help you better.
June 30, 20205 yr Author Hi Wim, the source URL points directly to the picture of the product. If you follow the link you'll get the picture itself. Here is the link: https://www.donballon.ru/upload/storage/catalog/large/656265/ebeceb21_6546_11e6_9617_005056c00008.jpg
June 30, 20205 yr If your URL points directly to the image, then you can simply use the Insert From URL[] script step to insert the image into your container field.
June 30, 20205 yr Your loop will always stay on the first record because of line 2. That line needs to move to before the Loop step
June 30, 20205 yr Do a quick test to verify that the file is actually a picture: - right-click the container and do "export field contents" and save it with the proper extension that you know it is (jpg? png?) - inspect the file in your OS, open it - if it is a picture then right-click the container again and choose "insert picture" and select your file if this all works then you have your routine to script: - use the "insert from URL" to insert into a *global* container - use the 'export field contents' script step to the temporary folder using a placeholder file name - use the "insert picture" script step to grab the file back and insert it into the proper destination container
June 30, 20205 yr Author Wim it's not a picture, I don't know why. Though, the link says it's a picture. Any ideas?
June 30, 20205 yr None. Except that in general terms grabbing assets from a URL like this isn't a good way to integrate. Does the site have an API that will give you the data in a proper form?
June 30, 20205 yr 50 minutes ago, stan111 said: doesn't work as expected It works as expected with the link you posted above. If it doesn't work with another link, then post the URL.
June 30, 20205 yr Author that's what I get when use the link above. That's odd if you get a different result. Edited June 30, 20205 yr by stan111
June 30, 20205 yr 6 minutes ago, stan111 said: That's odd if you get a different result. But I do: insertImage.fmp12
June 30, 20205 yr Author sure it works! my fault: I used the wrong field to copy from... thanks a lot!
Create an account or sign in to comment