If anyone has a code sample of recording the user id of the currently logged in user to a record when it is created it would be greatly appreciated.
The scenario is this:
I have extended the user entity to include an association to an Organization entity.
In the main entity in question, I have created two association attributes:
user and organization.
The idea is to set the user id (not username) and the organization id of the user creating the record to the when they create a new item.
I just can’t seem to figure it out.
Any sample of what that code might look like would be appreciated.