Skip to main content
2 of 3
edited tags
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

Return inserted serial from drupal_write_record

I have a module which creates records in the db via drupal_write_record and this works perfectly. However I need to get the automatically assigned serial number for each record which is written into a variable.

Does anyone know how I can achieve this and get the index #?

I need the index variable to use in another table to create the reference...

WestieUK
  • 3.8k
  • 18
  • 34