Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.

generated PDF doesnot include image

Hi everyone,

I have a bot that generates a PDF workorder where I can also add images. When PDF is created for the first time, there wont be any images, but when I update it, PDF updates and images are there. I assume it has to do with upload time that PDF gets generated before images are uploaded to the drive. I don't know and can't find any topic on that.

Help would much apreciated.

0 5 113
5 REPLIES 5

I assume your images are in child table. That would explain this behavior because first it saves the parent, then Bot is triggered and then your child records are saved. Now your Bot is triggered too early.

True, so I can upload multiple images. Is there any solution to that?

One workaround.. add an event action to your parent form view writing for example NOW() to a DateTime column and change the Bot to Updates only. You also need a condition in the Bot like [_THISROW_BEFORE].[DateTime]<>[_THISROW_AFTER].[DateTime]. If you need to modify the record later, you could also trigger it with an action button because now it will trigger it every time when the parent is updated with the form view.

Thank you for your suggestion but I don't know if that is the right solution, because I also noticed a problem that once you open a generated PDF file, it always opens the same version even if you update it... Other people did report that but I haven't found a solution to that yet.

You would need to save the PDF with a different name.. like with a version number etc. Otherwise it opens the file from the cache.

Top Labels in this Space