Hey @sarahk
Have you found a solution?
Having the ID as a negative number is a baseline behviour. The record will reach the server and then will get a permanent ID.
You can try using
var primaryKey = generatePrimaryKey('YOUR_OBJECT');
setControlValue("YOUR_OBJECT", "YOUR_OBJECT_KEY", primaryKey);
Regarding slowness it depends on many parameters. Among other:
- The load on the servers
- The connectivity of the mobile client
- Sync interval
- and more…
Cheers!
Hi @sarahk ,
As @Shneor Cheshin mentioned, the -7 value in the update_task message you are showing is expected. That message should be in the Waiting queue until the separate attachment message that inserts the signature gets uploaded. The response from the server after the attachment is inserted will contain the actual attachment_id for the signature, which will then replace the -7 value in tech_signature_id before mobile uploads the task update.