New Record in Another App

  • 0
  • 1
  • Question
  • Updated 7 months ago
  • Answered
I have two apps.  I would like to have a button on a dashboard (app A) that would create a new record in a table in the other app (appB).  When creating this new record, I would like data to prepopulate with set value.  I will want to change this code to paste a different value depending on the location I put this button.  This button could potentially be added to several other apps.
Photo of Todd Griffith

Todd Griffith

  • 220 Points 100 badge 2x thumb

Posted 7 months ago

  • 0
  • 1
Photo of Gil Spigelman

Gil Spigelman

  • 870 Points 500 badge 2x thumb
All you have to do is build the URL. I use one to create helpdesk tickets from any dashboard. Like you, I change the field value based on the app the button is on. Below is an example:
https://"yourcompany".quickbase.com/db/"yourDBID"?a=API_GenAddRecordForm&dfid=16&_fid_142="your field value"
Photo of Chris

Chris, Champion

  • 4,390 Points 4k badge 2x thumb

Gil,

Interesting. the dfid of 16 is the form being used to create the record via the button, and - question - you have dfid 16 set up with pre-populated field values?


Photo of Gil Spigelman

Gil Spigelman

  • 870 Points 500 badge 2x thumb
Yes, I set it to a specific form because there are many other forms in the table and I pre-populate fields based on where the button is located. This helps identify where the button was clicked.
Photo of Chris

Chris, Champion

  • 4,390 Points 4k badge 2x thumb
I like it. :)