The record will be submitted to the blockchain asynchronously. You should use GET Location Status to find out whether the record has been confirmed before performing any other operations on the returned location.
The record owner selects any encoders and salt to use
The record owner writes a record to be encoded via nChain Event
nChain Event encodes the record as specified to produce a fingerprint
The fingerprint is written to the blockchain
The result is the fingerprint and its location on the blockchain
The record owner stores the encoder, salt, fingerprint and location for subsequent processing
The final "output" shows the record that was written to the blockchain.
The record owner writes an unencoded record via nChain Event
The result is the location of the record on the blockchain
The record owner stores the location for later processing
At least the location (shown as "txId") should be stored for subsequent operations: