Questions tagged [user-record]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
33 views

Users able to edit records not owned by them inspite of OWD Setting Public Read Only

The OWD setting on Opportunity is Public Read Only Permission on Opportunity for User Profile is: Create, Edit, Delete, Read, View All. No permission to Modify All Sharing Rules are not defined for ...
3
votes
1answer
34 views

LWC locale does not match Apex version

When I utilize the following in my LWC component: import USER_LOCALE from '@salesforce/i18n/locale'; I get this back: en-US However, when I run the following in Apex: UserInfo.getLanguage() I get ...
0
votes
1answer
50 views

Mobile User checkbox not appears in user detail in developer sandbox and UAT even user having API Enable permission in profile

and Production i am able to see mobile user checkbox. Mobile User checkbox not appears in user detail in dev sandbox and UAT but its appeared in dev 2 sandbox instance.
0
votes
1answer
29 views

Record dependency

I have a custom object to apply for leaves (such as Casual, Sick, Unpaid) for the users in my org. I have applied a validation rule to check different users cannot create or edit any record for other ...
2
votes
1answer
643 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-...
0
votes
1answer
19 views

How to access the User object from Account object, via the Contact object. Error: No such column 'Users' on entity 'Contact'

I would like to write a SOQL query which goes from Account > Contact > User(s) Something like this: [SELECT PersonContactId, PersonContact.Users, PersonEmail FROM Account WHERE ...] But I get ...
1
vote
0answers
11 views

Lightning Community: Current User ID as URL Parameter

In a Lightning Community, is it possible to reference the current user's contact ID as a URL parameter? I want to link directly to the community user's contact record so they can update their contact ...
1
vote
1answer
760 views

How to get the user logged in in community page?

I need get the user id logged in a web page community site.com (not is a VisualForcePage) in this page I need the user id and others user's fields.
0
votes
1answer
113 views

Lightning Global Search is not fetching records from User Object

We use sidebar search in Classic to fetch a user record. In lightning when I try to achieve the same using Global Search it is not fetching the records from User Object. Even the drop down next to ...
0
votes
1answer
1k 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 ...
0
votes
1answer
112 views

Field 'ProfilePhotoId' on object 'User' is not supported

I have been getting this exception when updating lead(Process Builder). While I do not see any issue with process builders update operation I get below exception. This error occurred: ...
0
votes
1answer
26 views

Error when adding Role to my user in a scratch org

I came across this issue when trying to add a role to my own user, in order to have the account serve as a community account for community user provisioning. I also tried creating another admin with ...
0
votes
1answer
28 views

User Creation in External System [closed]

Is there a way to automatically create a user in an external web application once the user is created in Salesforce? What are the different ways to go about doing it? If you have some examples that ...
1
vote
1answer
5k views

Assign role to user in Apex

I'm trying to assign a role to a user using Apex. Here my code: user.UserRole=[select UserRoleId from UserRole where Name='CEO'].UserRoleId; But the debugger give the error: illegal assignment ...
0
votes
0answers
19 views

Make A Lightning E-mail Header/Footer Dynamic Based Off Of Location

I’m working with an org that has acquired multiple businesses underneath it; they all have different logos. I want to make a lightning dynamic letterhead that displayed their email Footer/Header ...
0
votes
0answers
25 views

Not able to enable customer user for an account

For some accounts when I click on enable customer user button from related contacts I am getting following error. Unable to Finish Processing Request An error has occurred while processing your ...
0
votes
0answers
23 views

I need specific users to be service cloud user

I wanted some users are service cloud users.One of the approach we found is to create a permission set with app permission**(Service Console (standard__LightningService))** as below but then i found ...
6
votes
5answers
1k views

Best practice for removing former admin user from all records, triggers and workflows?

I'm thinking of using demandtools to find all objects that their account is tied to. Then I was going to test removal and replacement with current admin user in a sandbox environment. Just wondering ...
2
votes
2answers
2k views

Can't reference User.LanguageLocaleKey in Formula Field / Workflow / Validation rule

When creating a formula field whose value is dependant on the current user's language, I find that I can't reference User.LanguageLocaleKey For example, when trying to create a link to an image whose ...
2
votes
1answer
143 views

System.CalloutException: You have uncommitted work pending error when creating testing user and testing callout

There are a lot of questions related to "System.CalloutException: You have uncommitted work pending" errors, but could not find solution for following use case: Basically, a static method in the test ...
0
votes
1answer
820 views

Api name for Mobile User field in User detail page

I need to turn off Mobile User flag on Users for some profile. I am not able find the Api name for that to execute that through script. Please let me know anyone has idea on that. Thanks in advance.
0
votes
0answers
52 views

Use of ?noredirect=1&isuserentityoverride=1

Can you please explain me the use of setting noredirect=1 and isUserEntityOverride=1 and appending it to the url. I'm creating a custom link in Lightning which will open the user record. If I set ...
6
votes
2answers
1k views

Can community user query internal users of salesforce

I am running a trigger whenever a contact is edited. In trigger I am querying user [Select id from user] I am getting all the users when trigger in run in any internal user context. But when same ...
4
votes
2answers
5k 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 ...
0
votes
1answer
34 views

Is it possible to create a user from one Org to another automatically?

I am trying to Create an Org to manage all of the user records for a POC. So from my POC org I have an Object called People (can also be the user record) and have a related list called Org Access (...
2
votes
0answers
300 views

How to enable community user to view/edit their Contact fields?

We need to enable community users to be able to edit their contact fields through My Profile. But it's showing only User details. To cater that I tried building a lightning component to read user Id ...
1
vote
1answer
110 views

Suppressing password generation when creating community user with API

I want to use the Salesforce API (REST or SOAP) to provision new Community Cloud Users. I have successfully invoked the API and created the user account, however the transaction automatically ...
2
votes
1answer
2k views

Documentation: Automated Process user/proxy user

I wanted to read more about the Automated Process user and what processes go through that user but I cannot find a salesforce's documentation page. Can somebody provide me with a link? I also read ...
1
vote
2answers
550 views

soql query not retrieving user records for Community User

List<String> userIds = new List<String>(); for(Note n : notes) { userIds.add(n.CreatedById); } Map<String, User> userMap = SystemContextMethodsHelper.getUsers(userIds); ...
0
votes
1answer
48 views

Allow access to a user-type custom object

I have a custom object called 'Advisor' and for every single record, I would like to allow authentication access for that one Advisor to log in and view their record and make changes. For example, ...
3
votes
1answer
48 views

Show View State checkbox on User record is missing

I have one client where the "Show View State in Development Mode" checkbox field is missing on the User detail screen, so I can't enable View State. The user has a full Salesforce license and is a ...
0
votes
1answer
95 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 '...
14
votes
3answers
8k views

Execute an action / run a trigger every time a User logs in to Salesforce

Is there any way to consistently execute a piece of Apex code whenever a User logs in to Salesforce? Posts such as this one seem to suggest that triggers on updates to the User object's 'LastLoginDate'...
2
votes
3answers
10k views

How do we get all the users who are part of public group of current logged in user?

I want get a list of all the users who are part of public group of the currently logged in user. From what i have read on the documentations, i should be able to pick these values from group and ...
1
vote
0answers
27 views

Reassign Contact Associated to Community User [duplicate]

I am not finding a way to change the contact that the community user is associated to. I have tried the following: 1) Upload/Download via Data Loader - FAIL - Data Loader cannot see ContactId on ...
0
votes
1answer
27 views

date format and phone number format

I have a few user who complained that the date format and phone number format are the US ones. This is creating issues as the number of digits are not the same for phone numbers, and people may ...
2
votes
1answer
674 views

Show user profile image - third party site

I am using Salesforce REST API to pull in the user profile salesforce object into my external site. I wanted to be able to display things like about me, title, and image on my site. I get all of this ...
2
votes
3answers
6k 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
171 views

Exception email alert cites a UserId that doesn't exist in my org

I wrote an apex service (called by my Account Trigger before insert and before update) that runs some complex validation , and it starts by querying for the user record of the running user since the ...
25
votes
4answers
28k views

What are the possible options for UserType?

The Salesforce docs describe the UserInfo.getUserType() call, which returns the same options as user.UserType. But I can't figure out where to find a list of the possible return values. Please ...
1
vote
1answer
1k views

No such column 'ProfileId' on entity 'User' when try to do SOQL query using Community Plus User

I am trying to query User record information in Community by using Community Plus user but getting following error: No such column 'ProfileId' on entity 'User' Any idea what specific permission my ...
1
vote
0answers
1k views

SFDX: Create User with Salesforce License in Scratch Org

I'm trying to create a user in a scratch org through SF CLI using force:user:create and a user-def.json file. Here is a sample body request according to Salesforce documentation: { "Username": "...
8
votes
1answer
10k views

Creating a user with DML

I have the following Apex code: User mike = new User(); mike.Username= 'mike.white@company.com'; mike.Email = 'mike.white@company.com'; mike.Lastname = 'mike'; mike.Firstname = 'white'; mike.Alias = '...
0
votes
1answer
83 views

User Standard Controller populate output fields with logged in user details

Thanks anyone for listening. I have added a section to our User page layout consisting of 14 custom fields that are used to track sales performance (most use the DLRS app to roll up data from ...
0
votes
1answer
46 views

Really Is not possible to delete User or any other option.?

I have created a community where any public user can self register. As a developer, I'm developing a different functionality for Self registration Page. Now I've to test self Registration ...
13
votes
3answers
7k 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 ...
5
votes
3answers
5k 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
2answers
41 views

Creating a new record out of a newly created user record

I have a custom object called Employee__c. Once I create a new User in Salesforce, a new and corresponding Employee__c record has to be automatically created in the system using the information from ...
1
vote
1answer
509 views

SOQL Query Like % Wild Card not working?

I am currently trying to do a SOQL query with a like using the % wildcard. According to the documentation: The % wildcard matches zero or more characters. This does not seem like it's working. ...
0
votes
2answers
17 views

How to use user custom field value in custom object field in filter in Reports?

I am Trying to create a report on Object__c, I have custom field(projectName__c) value on the current user. So while creating the reports, I am planning to filter like below:. Object__c....