Help

Computed Fields on Update

Topic Labels: API
2299 1
cancel
Showing results for 
Search instead for 
Did you mean: 
Simon_Horup_Es1
6 - Interface Innovator
6 - Interface Innovator

When sending PUTs to the API with a complete record you’ll get an error if you include computed fields. Since you get computed fields back like any other, the only way to find out which fields are computed is by either a) from the error messages when trying to update, excluding them one-by-one on the next requests, b) manually configuring them in the client.

For me, this is not a big deal, I get around it with the PATCH verb, by maintaining a list of columns that have been updated. However, to lower the barrier of entry for API clients (PUT is easier to support than PATCH), you may want to consider just ignoring computed fields when updated through the API.

Alternatively, the imminent Metadata API changes may help with this as well…

1 Reply 1
Tuur
10 - Mercury
10 - Mercury

I do the same thing. Less data to send too, but I like your idea! :slightly_smiling_face: