Skip to main content

Hello!

I have a zap that uploads a file to a google drive folder when I post something on Instagram. Then I have a second zap that creates a WordPress post when there is a new file in that folder. And then I have created a latest post feed on my WordPress website that shows my Instagram feed.

This works fine when I post a image. But if I post a video the zap only posts a static image of the video. And I understand why. I have tried to create two zaps. One for videos where It grabs another code which works fine and one for images that also works fine. But the problem is that when I post a video it always want to post an image as well. So it creates two posts. One with the actually video and one with the static image.

I don’t need an explanation because I understand the issue. Just wonder if someone have a way around it.


cheers


Hi @Smekis

Are there any fields like "type" in the data you get from the Instagram trigger? Basically any field at all that tells you which type of post it is and would allow you to add a filter?



if there’s not a type field like Andrew suggested is there a way in the second zapato detect if there is a video with the same filename and then filter that zap and not let it post the image if there is also a video file with the same filename.



I'm not sure that I follow and what you mean with the type field. But the information that sends the image from Instagram is typed "Image standard resolution URL" and for the video it's "Video standard resolution URL". But the filename when it's a video is not the same.

Cheers for answer!



@Smekis Perfect, you can add a filter step that says if that variable/field includes "Image" then continue for the Image coded zap, and in the other zap add a filter step that says if that variable/field includes "Video" then continue.



That probably have worked, but I'm running the free version and can only have two steps in my zap..



Sorry @Smekis you'll need to upgrade to do anything more advanced like this.