Parse all record values to Json

Hi iam to log changes for all kinds of records but i cannot seem to find how to parse a record to json

Iam trying to do a Http request and filling the body with json

tried;
record
record.values
toJson(record)
toJson(record.values)

toJson(record.values.Firstname) actually works.

Any idea on how to get all the key/values at once?

If you’re using workflows, there is currently an issue which prevents the toJson from encoding everything. What you could try is copying all of the values to a KV variable and then encoding that one.

Alternatively, since you’re using HTTP requests, you could just use that stringified payload as the log entry.

Thanks that at least explains it