2 share actions in a workflow

Can somebody help me to solve this - in the same workflow I have two share actions. The first one work, second one doesn’t work ( like in the image ). Those actions are for the same Share button and have to be done in the same time. Also they share information from 2 different columns of the same database Why this is happen or this can’t be done?

You actually can’t do that.

Share action triggers the sharing feature of the device. Because it opens a native overlay, the second share action won’t work.

Why do you want to have two share actions at the same time? What exactly are you trying to do? We can take a look at a different approach.

1 Like

First share is for an image and second for hashtags. Can’t put them in the same column but want to share them in the same post - share to different social networks ( to link the image to hashtags ).

So you want to be able to share something like that:

#hashtag
an image

Right?

Yes that’s right ( #hashtags like a comment for the image or something like that ).

Have you tried a template column to merge the image and hashtag together?

do not looks ok because transforms image to image link ( like this https://storage.googleapis.com/glide-prod.appspot.com/uploads-v2/9s9BovCRdFiH7nh/pub/fk91ukYlLWlGWaDnhFQ6_xxx.jpg - i changed a bit the image link :grin:)

It is possible with JavaScript with navigator.share( {
files: [
new File([blob], ‘file.png’, {
type: blob.type,
}),
],
title: title,
text: text,
})
But since iframe in Glide doesn’t allow web-share, it is not possible to use this option.

ChatGPT and I made are working on a little something to do what you want as a workaround.

I can’t use a “Make array” row (from a table ) in a workflow action “Share link” data?

The only thing that is ever stored in the table is a url. You only see an image in the data editor because the column is defined as an image. If you changed it to a text column, you would actually see the url that is stored in table. The fact that the data editor renders the image is just a nicety. It’s still just a url behind the scenes.

1 Like

Understand what you say. I think better than Template column is “Make Array” column, but when I want to select it in “Share link” workflow action I do not see it. Why?

Because an array contains multiple items and you are trying to place it into a placeholder that can only hold a single item. You don’t see it because it’s not possible to use an array with this use case. Besides, the array would still only contain the url.

The table does not store any files. It only stores a url reference to the file in Glide’s storage.

I was able to make the workaround, but still not working when trying to insert in Glide as iframe. I didn’t think about that… :rofl:

I managed to understand and made my share with a Template type column. Work ok on some social networks, but not on Facebook ( share only the image not the #hashtags). Does anyone know why it doesn’t work?

Can you show how you structured your template column?


Like this. When the share pop-up appear on mobile phone looks ok ( hashtags and flyer ), but on Facebook post appears only the flyer.

Ok, just wanted to verify that the hashtag wasn’t being merged into the url. What you have looks fine.

I’m not sure what to tell you. I tried several combinations and I get the same result for facebook. Seems like a facebook issue to me. I’m not sure if there is a proper way to format your text, but it seems like facebook will only allow one or the other, but not both.

2 Likes