Upsert a Thing
A 3-step recipe with Bubble. We can help you get access.
Recipe · 3 steps
Upsert a Thing
with Bubble
Upsert a single record into a Bubble data type by a unique key field.
- Search the data type for an existing record where the key field equals the supplied key value, returning at most one match.
- Partially update the matched record with the supplied fields. Only the fields provided are changed; all other fields on the record are left intact.
- Create a new record in the data type using the supplied fields when no existing record matched the key value.
What you'll need to have ready
- typename: Data type name in lowercase with spaces removed.
- keyField: The field name used to detect an existing record (e.g. email).
- keyValue: The value of the key field to match on.
- fields: Map of field name/value pairs to write to the record.
For your developer
Arazzo workflow bubble:upsert-thing, 3 operations: searchThings → modifyThing → createThing. Specs on APIs.io.