CreateOrUpdateProfile
Create a record or update an existing profile record with information for the individual or organization provided as context.
Intent Name
CreateOrUpdateProfile
Display Name
Create or Update Profile
Possible Contexts
SHOULD return context as a result:
Example
const organization = {
"type": "fdc3.organization",
"name": "Cargill, Incorporated",
"id": {
"LEI": "QXZYQNMR4JZ5RIRN4T31",
"FDS_ID": "00161G-E"
}
};
const intentResolution = await fdc3.raiseIntent('CreateOrUpdateProfile', organization);
const result = await intentResolution.getResult();
console.log(result);
Console log might display:
{
type: 'fdc3.transactionResult',
status: 'Created',
context: {
"type": "fdc3.organization",
"name": "Cargill, Incorporated",
"id": {
"LEI": "QXZYQNMR4JZ5RIRN4T31",
"FDS_ID": "00161G-E",
"internalId": "al983020303a_23"
}
},
message: 'record with id "al983020303a_23" was created'
}