Thank you for your reply.
Hope we got it right.
Your question is related to how Bubble saves things into the database, to find more about this, we strongly recommend checking the Bubble manual or Bubble tutorials: Data (things) | Bubble Docs
Here are some general recommendations:
To update an existing record in your DB_Facturation
database with the new PDF file, you don’t need to create a new entry. Instead, you can use a Bubble workflow to “Make changes to a thing.” Here’s how to set it up:
-
Set Up the Workflow Action:
- In your workflow, add an action that specifically targets the existing entry in
DB_Facturation
. - Select “Make changes to a thing” rather than “Create a new thing.”
- In your workflow, add an action that specifically targets the existing entry in
-
Identify the Record to Update:
- In the “Thing to change” field, specify the record you want to update. This could be based on a unique identifier or search criteria that selects the correct line in your database.
- For example, if you have an
ID
or any other unique field for the existing line, use a search to identify this entry.
-
Update the PDF Field:
- Once the record is identified, set the field for the PDF file (e.g.,
invoice_file
orproforma_file
) to the new PDF file you’ve generated.
- Once the record is identified, set the field for the PDF file (e.g.,
-
Check the Workflow and Database Constraints:
- Ensure that no constraints are preventing the update, such as field types or privacy rules in Bubble that restrict updates to certain fields.
This approach should allow you to add the PDF to an existing line in DB_Facturation
without creating a new entry.
Hope it helps.
In case you are looking for a Bubble developer who can assist you with these customizations with your Bubble app, can try searching for it in the Help Section on the Bubble forum or hire a freelancer.
Best regards,
Support Team
Browse all Zeroqode Plugins for Bubble