• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
custom record ID
#2
(09-10-2021, 02:14 PM)philippecoenen Wrote: Is there a way for me to modify the record Id
I already have a database and they have their records Id already. It's a UUID similar to the ones you are using but slightly different.
If I create new records that are not a problem (as these ids are alpha so it does not matter as long as they are unique).
But if I want to use existing records it's another problem.

I can definitively ignore your ids but I think it's a bit of waste.

However, if I can change an id or provide the id when I create a new record it will be OK.

Please let me know...

Best,
Hi Philippe,

You can not change the existing record ID, but you can use your own ID in new records. They must meet the UUID format or the create command will generate an error.

You can export your existing database to either CSV or JSON. Read the data in and massage into an array.
Walk through each record and take your existing ID and place it in a cdbRecordID key. 

While making your array, use the batchCreate API's format.

You can also upload your database one record at a time if that works for you. You would still use your existing ID in the cdbRecordID key to preserve your current ID value.

Let me know if you have any problems.

-Mark
  Reply


Messages In This Thread
custom record ID - by philippecoenen - 09-10-2021, 02:14 PM
RE: custom record ID - by mark_talluto - 09-10-2021, 04:52 PM
RE: custom record ID - by philippecoenen - 09-11-2021, 07:27 AM
RE: custom record ID - by philippecoenen - 02-19-2022, 09:00 AM
RE: custom record ID - by mark_talluto - 09-12-2021, 08:20 PM
RE: custom record ID - by mark_talluto - 02-20-2022, 10:27 PM
RE: custom record ID - by philippecoenen - 02-23-2022, 10:26 AM
RE: custom record ID - by stamatis - 02-24-2022, 01:10 PM
RE: custom record ID - by philippecoenen - 02-25-2022, 10:21 AM
RE: custom record ID - by stamatis - 02-26-2022, 03:21 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)