Skip to main content
Version: 2.1

TransactionResult

A context type representing the result of a transaction initiated via FDC3, which SHOULD be returned as an IntentResult by intents that create, retrieve, update or delete content or records in another application. Its purpose is to provide a status and message (where needed) for the transaction and MAY wrap a returned context object.

Type

fdc3.transactionResult

Schema

https://fdc3.finos.org/schemas/2.1/context/transactionresult.schema.json https://fdc3.finos.org/schemas/2.1/context/transactionresult.schema.json

Details

PropertyTypeRequiredExample Value
typestringYes'fdc3.transactionResult'
statusstringYes"Created" | "Deleted" | "Updated" | "Failed"
contextContextNoSee Below
messagestringNoSee Below

Example

const contact = {
type: "fdc3.contact",
name: "Jane Doe",
id: {
email: "jane.doe@mail.com"
}
}

const resolution = await window.fdc3.raiseIntent('CreateOrUpdateProfile', contact);
const result = await resolution.getResult();
console.log(JSON.stringify(result));

Console log will display:

{
"type": "fdc3.transactionResult",
"status": "Updated",
"context": {
"type": "fdc3.contact",
"name": "Jane Doe",
"id": {
"email": "jane.doe@mail.com"
}
},
"message": "record with id 'jane.doe@mail.com' was updated"
}