Replies: 1 comment 1 reply
-
I'd suggest just adding a field to your model. This would go into your Users collection file; const Users: CollectionConfig = {
...,
fields: [
// Email added by default
{
name: 'name',
type: 'text',
},
{
label: 'SalesForce ID',
name: 'crmReference',
type: 'text',
// Remember to set the index property to true if you want to search by this field a lot as it will improve query speed.
index: true,
},
],
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks for Payload. In my data model I have a User (and some other records like Company, Project, etc) and I would like to be able to have them reference the canonical data for our organization that lives in Salesforce. I'm writing to ask what you think might be a best practice for implementing this kind of field? I would like to be able to search that system for a record of a certain type and then store a reference to its id (and possibly some field data as a local cache).
Beta Was this translation helpful? Give feedback.
All reactions