Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store the Account/Contact/Case/User on the log record #44

Open
jlowe-SFDC opened this issue Nov 21, 2024 · 0 comments
Open

Store the Account/Contact/Case/User on the log record #44

jlowe-SFDC opened this issue Nov 21, 2024 · 0 comments

Comments

@jlowe-SFDC
Copy link
Collaborator

The createLogEntry function is useful, but it could be more useful if the registration linked the log to records that it either finds, or creates as part of the registration. Add new lookup fields to the Account, Contact, Case and User objects and populate these at the various points when calling the SiteUtilities.createLogEntry() method.

The log entry will not always be fully populated with all fields depending on configuration. For example:

  • If you do not query cases then this field would never be populated.
  • If you're using Accounts, the Contact would need to be populated with the PersonContactId.
  • If using Business Accounts, then it would be just the Contact Id.
  • If a record is matched, need to use that Id, if creating a new record then use that Id instead.
  • User may not always be created if there was a failure creating (For login component, not sure if the Site class returns the Id of the user it is trying to login, or if we can get it from the loginHistory table when we check the status.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant