The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
0answers
16 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
15 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
43 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
44 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
38 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
84 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
73 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
31 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
42 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
84 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
57 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
236 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
75 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
778 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
65 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
259 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
438 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
150 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
60 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
118 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
487 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
122 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
96 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
59 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
466 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
926 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
300 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
474 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
721 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
710 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
168 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
445 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 ...
4
votes
1answer
120 views

Does 'pnet' in a user's Id have any special meaning?

I am working on an app and in one of the triggers there is this exotic bird: if( UserInfo.getUserId().indexOf('pnet') != -1 ) { return; } Looks terribly hard coded or is there a general rule ...
3
votes
1answer
675 views

access records based on user id - roles setup

I am new to Salesforce, and need an advise. We are planning to create a custom object and custom tab for it. Now, we want user to be able to access only his/her record, or records related to him. For ...
3
votes
1answer
428 views

Processing only new records in a batch apex

I want to process only the new records in a batch Apex. We can query the new records in a trigger by Trigger.new . Is there any means by which we can query only the newly created data items and ...
4
votes
3answers
143 views

Detect and eliminate existing duplicate accounts, contacts and Opp for Professional Edition

I am using SF Professional edition have been Searching a free app to detect and eliminate the duplicates mainly for the Accounts, Contacts and Opportunities. Most of the free apps tends to search ...
5
votes
1answer
377 views

How to Store data as per role Hierarchy and hierarchical Rollup in SFDC

I Need to Store Number fields per used based on User role Hierarchy and need to do hierarchical Rollup later on once data is updated. Did anyone tried to do this in Salesforce. One Approach I am ...