This Tag is used to group all queries related to Salesforce user Record

learn more… | top users | synonyms

1
vote
2answers
19 views

Get dateformat based on Locale

i am trying to fetch the date format for the logged-in User in javascript on visualforce page. Usually I used to get this data by using: window.UserContext.dateFormat Expected Output should be:...
0
votes
1answer
25 views

How to stop frozen user in lookup search window

How to stop frozen user in lookup search window. We have one requirement we need to stop displaying frozen user in lookup search layout . any help will be highly appreciated
7
votes
2answers
345 views

Deleting Users from Salesforce permanently

Its been quite while that a large number of Users were Deactivated and not need them anywhere in ORG. And the user list who were deactivated getting piled up to a heap now. Couple of users never ...
1
vote
2answers
45 views

What is the significance “Development Mode” on User Record details? [closed]

I can see a "Development Mode" flag for the User-Records under System Administrator profile and not able to see in other Profiles. I am using the DEV ORG. Can someone tell me the significance of this ...
0
votes
2answers
39 views

Can I assign Permission set to a profile instead of user?

I knew that Permission set can be assigned to User record. But just want to know the possibility of assigning the Permission set to a Profile instead of user. I saw some query related to this posted ...
0
votes
1answer
17 views

Allow users to update the Manager field on their user record

On the user record there is a field called "Manager". It is a standard user object field. I would like to give my users the permission to edit this field themselves, however in the field level ...
1
vote
0answers
21 views

What's a work-around for creating a master-detail relationship for Users?

I'm trying to create a user-centric schema and running into the limitations of the built-in user object. I need the following: Managers should see a list of all users assigned to them with a roll-...
0
votes
1answer
20 views

Can someone please tell me more about the 'Accessibility Mode' mentioned in User Record?

I was trying to create a Meeting request from salesforce calendar and receiving below error "This page isn't available because you're not using the Salesforce Classic 2010 user interface theme or ...
0
votes
1answer
19 views

Look up Filter Condition doesn't show record shared by other user

I have one account record and it has a field of picklist (Type) and value set to ("salesforce"). This Account Record is created and shared by admin to the roles(x,y,z) by Manual sharing rule. When i ...
1
vote
1answer
47 views

User.Username Field Accepts More Than 80 Characters?

The length of UserName field in the standard User object is 80 characters (ie. Text(80)). Recently in my production org, a User record was created with a Username more than 80 characters. Due to ...
2
votes
2answers
55 views

Evaluate Current User for Flow - 15 - 18 digit User ID

I need to evaluate the current user running a flow. Someone suggested I use the Global Variable {!User.Id}, but it's returning a 15 digit Id. I need to compare the current user with the Account owner. ...
2
votes
2answers
46 views

Evaluate the current User in a visual workflow

I created a Visual Workflow that launches after a user clicks a custom button on the Account page. I'm wondering if I can use Decision logic to evaluate certain attributes for the logged in user and ...
9
votes
1answer
93 views

Do not send email when activating a user

I'm writing some code that should (de-)activate some users based on some criteria. This part was easy, but one of the requirements is also that this user should NOT get an email. So when I create a ...
0
votes
0answers
93 views

check if current user is the Delegated Approver, or the record owner

in my VF page I would like to show a button Open in SalesForce if the current user is the approver of the record creator. how could I check that in my VF Formula? currently I am checking if the user ...
0
votes
0answers
35 views

Does each Customer Community Plus user automatically create a Contact record?

When a Customer Community Plus user record is created after someone logs in via the community page linked to an org's web site, is a contact record automatically created for them? Are there any '...
0
votes
0answers
49 views

Create user in existing sandbox from production login

I have production login credentials. I want to reset password of an User in an existing sandbox from production. If want possible I would like to create an User in sandbox from the production login. ...
0
votes
0answers
23 views

User licenses for Force.com site

Considering that each user requires User license and Sites will be having lakhs of customers(users), wont it be too costly just for the licenses if we are going to provide registration/login facility ...
2
votes
1answer
93 views

Liveagent: how to pass a variable through chat

An Operator is chatting with a client, Alfredo. In order to be contacted again by the same user the Operator needs to pass his ID throught the chat. If he simply passes his ID http://site-visible-...
2
votes
0answers
58 views

INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY on Communities Change Username Page Test

I created a visualforce page for Communities users to update their username and email. In real life the page works fine, logging in as a Community user I can update my username and email. However, I ...
1
vote
2answers
283 views

Trigger to create a Contact after User is created (w/ error)

Getting an error with trigger/class. We have an automated process the creates a user record (from our AD/SSO process). When a User is created, a trigger sends an email to our support group to ...
-1
votes
1answer
84 views

Trigger for Freeze Button in Salesforce

Is it at all possible to create a trigger, workflow rule, process builder, flow, etc that would automatically update a custom field on the User object when the "Freeze" button is clicked on the User's ...
0
votes
1answer
863 views

System.SObjectException: Field is not writeable: User.ProfileId

I am trying to create a user as below, User u = new User(); u.Username = userName; u.Email = email; u.firstName = firstName; u.lastName = lastName; u.CommunityNickname = communityNickname; u....
4
votes
0answers
66 views

Purpose and/or Description for “Is Controlled by System” Field on User Record Requested

I was working on a Validation Rule today for User Records, and notice a field on the User Record "Is Controlled by System",. This looks promising and useful, however, I can't seem to find anything ...
0
votes
3answers
270 views

Trigger on Opportunity to update User object

Trigger on Opportunity to update User object I need to make a trigger on the opportunity object that Adds +1 to a custom filed on the user object every time an opportunity that the user owns has the "...
6
votes
1answer
466 views

Why would my test class throw a Duplicate exception?

I have a test class. The annotation on the class is @isTest(SeeAllData=false) In the test, the first step I do is create a user. I am getting the following exception when I run my test. ...
11
votes
2answers
2k views

List of User fields not available in Apex

I am looking to write some custom functionality for creating a User. The problem I am facing is that some of the standard User fields don't appear to be available through the API. I found this Idea ...
0
votes
1answer
162 views

Fetching the Partner User from the Partner Account

How can I query the user id/id's of the Partner User belonging to the Partner Account? Can you provide me with the approach/sample. I have a below query that fetches the id of the Partner Account ...
1
vote
2answers
1k views

What could be the situation - Record Currently Unavailable- Record Lock Issue

One of user from my org got this error while changing an owner of Account. (there is a trigger on Account who updates its child opportunities too ) Now I am unable regenerate the error. So my ...
1
vote
1answer
64 views

If I create a user in a testmethod, I cannot select them with SOQL in the same testmethod. How can I work around this?

I am creating a test method to test functionality allowing users to search for other users. In order to do this, I have tried creating and saving test users with certain criteria, and then searching ...
1
vote
2answers
130 views

How can I create an owner lookup field similar to change owner on any record

We have a request for a field to show a referral from internal sales users. I thought rather than a picklist that we would have to constantly manage, maybe there was a way to use the built in user ...
3
votes
1answer
510 views

Invalid field Username on User : SOQL Query

I simply cannot understand the reason why I am getting this below error. 17:16:15.106 (1106785435)|SYSTEM_METHOD_EXIT|[29]|system.UserInfo.getUserId() 17:16:15.107 (1107062779)|EXCEPTION_THROWN|[29]|...
6
votes
1answer
128 views

Opportunity.LastModifiedBy is null

I found reference to an invalid user in a sandbox yesterday: LastModifiedById on an opportunity had a Salesforce ID that was not available in the org, and opp.getSObject('LastModifiedBy') returns null....
0
votes
1answer
31 views

No sorting is applied on the list. Create user not coming as first record

Login to salesforce with admin . Go to manage users . click on manage users . Create a user from new user button. Expected Result: After creating the user should show as first record. The list ...
1
vote
1answer
99 views

Salesforce Identity Connect and AD user management

If a user is deleted from Active Directory, is the corresponding user record deleted or simply deactivated from Salesforce data store?
2
votes
0answers
60 views

How to update the current login user

I have a custom field over my user object. And I want to update this user by the contact id from apex. How can i update the user record in salesforce. Because when I trying to update the field of ...
3
votes
1answer
1k views

How to enable customer community users via apex

We have person accounts in our org. to whom we need to give access to our customer community at various stages of an opportunity. Is there a way we can programmatically enable our person accounts as ...
5
votes
1answer
473 views

Developer console updates current user's User record

We have noticed that Developer Console does some kind of an update on the current user's User record. When that happens, our User trigger is invoked, but with what seems limited permissions, and we ...
2
votes
1answer
947 views

How Do I populate the Last Login Date from User object into a custom object/field? [duplicate]

Aim – Pull the last login date from the user object into my custom object and populate a particular field Now I am under the impression that LastLoginDate on the user object is not accessible through ...
4
votes
1answer
2k views

Are lookup fields on the User object (e.g. to Contact) supported by the platform?

Aim – i need to have a lookup field on the user object which looks @ the contact object and only returns values where the email address is @domain.com Now i am under the impression that no lookups ...
0
votes
2answers
315 views

How to turn off Receive Salesforce CRM Content Alerts as Daily Digest flag on user creation

In my apex code for creating a user, I'm setting the following flags which according to the documentation should turn off email alerts for content users UserPermissionsSFContentUser = false, ...
5
votes
2answers
2k views

Add a button on User detail page

How to add my custom button on User detail page? I've created a VF page with User standardController. I've created a button in "Edit User Custom Button or Link". This button appears in layout. But I ...
0
votes
1answer
509 views

How Do I Display Additional Detail On User Hover Card

I want to show the city on the hoover card in the chatter app when my users hoover over the name. Anyone know how i fix that?
6
votes
1answer
748 views

New Customer Portal user email even when triggerUserEmail = false

I'm trying to write an Apex web service that can create a customer portal user. After creating the user, there is a separate step which does a password reset for the user and sends them an email. The ...
7
votes
4answers
749 views

Can users be stopped from editing their own user record?

Is there any way to restrict a user from updating their user details (first name, last name, email etc...)? Revoking CRUD access to the user object does not stop this. Currently users can navigate to ...
1
vote
1answer
1k views

Apex dynamically assign new records to users using trigger

I'm a young Apex developer. I have a quick question: I would like to dynamically assign new records to users using an Apex trigger. As we know, every new created records are automatically assigned to ...
1
vote
2answers
57 views

how to reinsert old records from excel file in salesforce production edition [duplicate]

I have old records and i want to reinsert it now. i having a contacts and their spendings e.g like by year 2006- abc 2007 -abc now i want to add 2005 records from excel ...
1
vote
2answers
2k views

Mysterious OP_WITH_INVALID_USER_TYPE_EXCEPTION, Operation not valid for this user type: []

I had following situation. When I tried to edit and save some of custom object CustomObject1__c instance, I received error in the top of the page Error: Invalid Data. Review all error messages below ...
3
votes
1answer
76 views

How can I get an overview of a users ownership and usage?

I am trying to get an overall view of a users ownership in SF. e.g. - How many accounts/leads/opptys a certain user has. I wanted to use rollup summary, but can't. In the user's page, all I see is ...
1
vote
1answer
170 views

Customer Portal Self registration and User trigger

Will trigger (before insert) on User object fire when a customer portal user registers using customer portal self registration?
2
votes
1answer
458 views

Assigning Records via a trigger on User Object

Aim- In this example https://www.youtube.com/watch?v=QrtVN8vZGJU you can see that “Jim Smith” is going through the de-activation process . What i want to do, is when you press save, an apex trigger ...