Skip to content

Find / Update using Model #11

@tshumay

Description

@tshumay

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions