I fear I may be misunderstanding usage - but hopefully you can help me understand the proper way to do this....
I am using the find function to locate a Lead record successfully, but when I go to save, a duplicate record is created, because the 'id' field is not present.
In model.js line 16, I can see why. 'id' is a read-only, so it does not become a property of the item. However, the base item retrieved by find does in fact have an id that could be used to save the object again later.
Is there a recommended way to preserve the id in a find->modify->save operation?
I fear I may be misunderstanding usage - but hopefully you can help me understand the proper way to do this....
I am using the find function to locate a Lead record successfully, but when I go to save, a duplicate record is created, because the 'id' field is not present.
In model.js line 16, I can see why. 'id' is a read-only, so it does not become a property of the item. However, the base item retrieved by find does in fact have an id that could be used to save the object again later.
Is there a recommended way to preserve the id in a find->modify->save operation?