We have an issue since we moved to a data quality tool. When you create a record in Salesforce you get the logged in user as the one that created and last modified the record.
With data quality tool the purpose is that before creation we are redirected to a VF page that does a check in a global non salesforce database for the record and then if needed creates the record in Salesforce using an API user. This has as a big disadvantage that the created and last modified user is always the api user.
Now i thought of using the userInfo.getUserId() in a trigger to add that user data in to a custom lookup so we still see who the actual user was that created the record. Now it seems that it is still the api user that is in those custom fields even when i am logged in.
Is there a workaround for this so that we can provide somewhere the physically logged in user instead of the api user?
Or do we need to tell the provider that he needs to change his code so oAuth is used (not the easiest option i pressume).
Thank you for your thoughts