Upsert Object Example

This is the recommended method to upsert an object