You need to sign in to do that
Don't have an account?
Irvine Delacroix
User ID convert to Username in Trigger
Hello,
Can you guys help on my simple trigger experiment please. What I am trying to do is to find the name of the UserID.
I have object (TestObject__c) and Fields (txtField__c, WhoUser__c).
My goal is to return the name of the UserID that is in the txtField under my TestObject. Say for example, my user is Bob and his user ID is 0053000000AtjAhAAJ.
So, if the txtField value is 0053000000AtjAhAAJ, the WhoUser field will return Bob when I save the Record.
I've tried experimenting on this but it seems my codes does not make any sense.. I'm always getting that "Unexpected Token" error when trying to query.. (I'm still learning the syntax though) :D
Thanks a lot!
Can you guys help on my simple trigger experiment please. What I am trying to do is to find the name of the UserID.
I have object (TestObject__c) and Fields (txtField__c, WhoUser__c).
My goal is to return the name of the UserID that is in the txtField under my TestObject. Say for example, my user is Bob and his user ID is 0053000000AtjAhAAJ.
So, if the txtField value is 0053000000AtjAhAAJ, the WhoUser field will return Bob when I save the Record.
I've tried experimenting on this but it seems my codes does not make any sense.. I'm always getting that "Unexpected Token" error when trying to query.. (I'm still learning the syntax though) :D
Thanks a lot!
- Get a set of user ids
- Get a map of user ids to user records
- Lookup users for each test object
- If a user match is found, update the who user field
Good luck
All Answers
- Get a set of user ids
- Get a map of user ids to user records
- Lookup users for each test object
- If a user match is found, update the who user field
Good luck
I then need to reinstate the original Name of the Contact, when the box is untucked, and it will revert to the original Record Type. The process is not working in the last part, when reinstating the Name.
Does anyone have any suggestion?
Thanks
Advertising has always been the essential instrument for raising the profile of your goods, and this aspect of business has not altered for a very long time. In order to adapt to a new market with the Internet and become what is now known as the Advertising Technology, advertising had to change with the arrival of the digital era in the 2000s (AdTech). The appropriate person at the right time may be reached with your products using a certain set of strategies and procedures (more info here https://mobilunity.com/blog/hire-adtech-developers/). Advertising had to adapt quickly when a brand-new digital market emerged in order to capture consumers' attention both offline and online.