Auto-Number not being assigned to new records created with R

Posted by Rollbase User on 09-Mar-2011 16:04

Creating a record through PHP/REST using create2 API does not assign or increment an Auto-Number field for the new record. Shouldn't an auto-number be automatically assigned to all new records, regardless of how they were created?

All Replies

Posted by Admin on 09-Mar-2011 17:26

It should, if no value is passed. Do you pass any value for auto-number field?

Posted by Admin on 09-Mar-2011 17:29

No I don't include the auto-number field in my parameters.

Posted by Admin on 09-Mar-2011 17:30

Do I need to include the field name with no value? (ie.. &autonum=)

Posted by Admin on 09-Mar-2011 17:43

OK, I'll check this. It would help if you submit support request with your zone, object, and sample URL you're using to pass data.

Posted by Admin on 09-Mar-2011 17:45

No, don't do this.

Posted by Admin on 09-Mar-2011 17:52

I will send a support ticket.

One possibility why it's not working is that I just created the AutoNumber field (about 30 minutes ago) and it may not be available to use in REST updates yet. I have a similar issue with another field I just removed the "Required in all forms" restriction and when I try to Create a new record with REST create2, I still get back "closing_date is a required field" even though I removed the Required in all forms option.

Thanks

Posted by Admin on 09-Mar-2011 18:55

Yes, this may be an issue. I'll try to fix that.

Posted by Admin on 09-Mar-2011 19:34

Looks to be working now. Thanks.

This thread is closed