Can you generate files through a workflow?

Hello,

Users in my app can see a list of previous orders and they are able to view the details of the order in a pop up that looks like a purchase order. I would like for the users to be able to print/email/download the purchase order.

It seems like my approach isn’t working. Could have a purchase order file generate when the order is created? Has anyone done this before?

Below a quick way to create a PDF file from an order page using a PDF creation plugin:

  • Create a thing called File and assign it a field type file

image

  • Get the plugin (there are many options with diff ways of creating PDFs … I just chose one which happened to turn a page into a PDF)

  • Assuming you have a buttton that upon pressed creates the PDF below a basic flow to generate a PDF and create a file entry with the PDF added to it

Hope this suggests ways to approach your use case! :+1:

2 Likes

Are you saying you’d like to be able to do all of those or any one of them? Would it work to provide an option to email a copy to themselves? Once they have a copy, they can print, archive, or do whatever with it.

@sudsy Yea I would like for them to be able to reference and preview the file in the app and then also have the option to print or email or download as pdf. I know I can get a PDF converter then save it to something like amazon S3, but it seems like there is a better way. Or maybe there isnt.

@cmarchan Thanks for your detailed answer, I appreciate it so much! I will play around with this idea. I feel like PDF converters are so expensive for the simplicity of the task.

1 Like

Perhaps I misunderstood, but I thought you said you already implemented that functionality…

they are able to view the details of the order in a pop up that looks like a purchase order.

 
 

Oh, ok. You didn’t mention PDF in your initial post. You could also capture an image of the order that you’re already displaying in the popup, but that would require a plugin as well. It would be a raster image, though, so PDF might be a better option.

Okay thanks, I appreciate your advise!

Ah ok, it’s the “file” part that I glossed over. Assuming the file is not permanently stored on the system (not sure why you’d want to do that), then @cmarchan’s approach seems like a good direction to go.

2 Likes

Yea you are right are both right, that is definitely the way to go!

Thank you @sudsy and @cmarchan for all the help :grinning:

1 Like

Do you know how to create an .ics file without using a paid plugin?

I do not know how. My understanding is that it cannot be done natively with Bubble.

Hey @boston85719 :wave:

You can send them an .ics with this workflow

Hope that helps! :blush:

@j805 www.NoCodeMinute.com

For All Your No-Code Education Needs:

  • One-on-One Tutoring
  • eLearning Hub
  • Video Tutorials
  • No-Code Classes
3 Likes

Looks like all those inputs are the same information required to make an .ics file

Thanks so much for this…I’m going to be playing around with it today.

1 Like

Yeah. That’s how I do it. :blush:

1 Like

So glad this is possible and so glad I was wrong.

Thanks!

1 Like

No problem. :blush:

Quick question about the email that is received and how to change or if it is possible to change.

My email I sent comes in with three basic properties displayed, When, Where and Who

The when is understandable, the where is as well.

I am however, unsure of the who part. I don’t seem to have control over what is displayed there. I thought it might be coming from the ‘organizer’ property but after changing it from an email address to a name, there is no difference in what shows up in my email.

I’ve tested with yahoo mail and gmail

In my yahoo emails I am always seeing ‘Who’ as my yahoo email address regardless of what I have put into the ‘organizer’ property.

When I send to my gmail account I always get Unknown Organizer* in the who section

Do we actually have any control over this? If so, is there some appropriate syntax to use?

I’ve been referencing this site

https://www.kanzaki.com/docs/ical/organizer.html

but the examples provided are not making any difference and I keep getting the same results in the emails received.

Can you share some screen shots of the workflow and the results? I’m a very visual person so it would help me a lot. :blush:

I made several variations of the Organizer in the workflow below, the first was an email address, the second was a name, and the final was this one pictured which was an example from the website I used to reference what the properties were.

No matter which variation I used the results were the same

Here are the results that I received in my email accounts…the results were always the same regardless of which variation of the Organizer input was for the workflow

Thanks for the screenshots. Very helpful. Let me check it out.

So according to the Bubble reference, we need this:

Organizer

Enter the email address of the organizer of the event (ORGANIZER property of the event in the iCalendar format)

I’m not sure, this is one example I found online too:

ORGANIZER;CN="Cyrus Daboo":mailto:cyrus@example.com

So let me do some testing to be sure, if both of us can’t get it working then maybe it would be worth filing a bug report or asking Bubble Support. Let me see if I can test it out for you in a few hours. I will let you know. :blush: