Skip to content

Commit

Permalink
More logging
Browse files Browse the repository at this point in the history
  • Loading branch information
joeauyeung committed Feb 7, 2025
1 parent cb9dfaa commit 7b64eea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/app-store/salesforce/lib/CrmService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -847,14 +847,18 @@ export default class SalesforceCRMService implements CRM {
}

await conn
.sobject(appOptions?.createEventOn)
.sobject(recordType)
.update({
// First field is there WHERE statement
Id: id,
OwnerId: newOwnerId,
})
.catch((error) => {
this.log.warn(`Error changing owner name with error ${JSON.stringify(error)}`);
this.log.warn(
`Error changing record ${id} of type ${recordType} owner to ${newOwnerId} with error ${JSON.stringify(
error
)}`
);
});
}

Expand Down

0 comments on commit 7b64eea

Please sign in to comment.