Help creating a PDF that was not correctly generated by a workflow

Hey folks, looking for some creative ideas. I have several apps that generate PDF versions of data collected in a row when the row is saved (and then are linked to in a file column for users). I noticed a couple of days ago that these apps werenโ€™t correctly generating PDFs, and found out today it was due to a change that was deployed on 12/2/2020 that affected apps using Team Drives. Sounds like a fix is in the works to correct the problem moving forward, but Iโ€™ve got about a weeks worth of entries that are missing the PDF โ€œhard copiesโ€ that users highly value.

Does anyone have a suggestion for a creative way to have appsheet generate these files after the fact for the rows that are missing them?

Thanks

Solved Solved
1 3 496
1 ACCEPTED SOLUTION

Hello @Frank_McGee

Going back and refilling data after the fact can be a real pain, especially if you didnโ€™t build your app with that functionality in mind.

Thankfully, AppSheet is designed for rapid deployments and updates - so adding this functionality into your app is possible.


You said you had a file column that housed the link to the PDF; are there values in these fields?

If not, you can easily use that to key off of to tell which records need the file generated for or not.

If they DO have data, then itโ€™s a grind my friend.

  • You need to go through each record and check and see if the file link works
    • if it does, the file is there;
    • if it doesnโ€™t, the file is NOT there and that record needs to be added to the list of ones to update.

To make it easier to flag records that need to be updated:

  • I would add a column to your table specifically to hold this flag
  • I would create an action to either set or clear the flag (this way I can easily add a record to the list with a push of a button)

The final bit of the puzzle is to then to modify your PDF generation workflow (or just create a special one for this instance and delete it after itโ€™s done) so that it can run on the records you flagged.


This is an inevitable fact of being a software developer, even a no-code Citizen Developer: things will at some point not go as planned and work will be needed to be put in to get everything back on track.

Just be thankful you didnโ€™t have to deal with recovery mode.

View solution in original post

3 REPLIES 3

Hello @Frank_McGee

Going back and refilling data after the fact can be a real pain, especially if you didnโ€™t build your app with that functionality in mind.

Thankfully, AppSheet is designed for rapid deployments and updates - so adding this functionality into your app is possible.


You said you had a file column that housed the link to the PDF; are there values in these fields?

If not, you can easily use that to key off of to tell which records need the file generated for or not.

If they DO have data, then itโ€™s a grind my friend.

  • You need to go through each record and check and see if the file link works
    • if it does, the file is there;
    • if it doesnโ€™t, the file is NOT there and that record needs to be added to the list of ones to update.

To make it easier to flag records that need to be updated:

  • I would add a column to your table specifically to hold this flag
  • I would create an action to either set or clear the flag (this way I can easily add a record to the list with a push of a button)

The final bit of the puzzle is to then to modify your PDF generation workflow (or just create a special one for this instance and delete it after itโ€™s done) so that it can run on the records you flagged.


This is an inevitable fact of being a software developer, even a no-code Citizen Developer: things will at some point not go as planned and work will be needed to be put in to get everything back on track.

Just be thankful you didnโ€™t have to deal with recovery mode.

Thanks, I had come to much the same conclusion. Unfortunately the column with the link is an app formula that functioned correctly, so as you say, itโ€™s a grind going through and finding the ones that werenโ€™t created. The apps that were generating these PDFs allow adds, but not updates, so my plan is to create a version of my workflow that fire with updates, and give just my username update permission, and then make some innocuous change in a comment field to get the workflow to fire.

Iโ€™ve put together an In-App guide that will walk you through adding a system into your app that allows you to fire off your workflows with an action button push.

Look for for the guide named:

Top Labels in this Space