The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
14 views

Partner Users cannot access User lookups

We have a situation with our partner users such that SFDC doesn’t allow partner users to access user records in user lookup fields on the opportunity. The affect is that they are unable to ...
1
vote
1answer
88 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
30 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
1answer
160 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
53 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
55 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
141 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
62 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 ...
0
votes
0answers
136 views

Visual Force page - Owner lookup for partner user is not working

I have created a new Visualforce Page where I can look for Lead Owner with options User/Query/Partner user, where user is giving me the correct results and I am expecting the lookup for 'Partner User' ...
3
votes
1answer
128 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
196 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 ...
3
votes
3answers
71 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 ...
4
votes
1answer
171 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 ...
6
votes
1answer
246 views

Different user IDs across production and sandboxes - how to make them the same for every user?

Normally users across production and sandboxes have the same unique user ID, given that you created the production user first, and then refreshed the sandbox. We have the case that we created users ...
1
vote
2answers
1k 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 ...
2
votes
1answer
100 views

How to get all emails within the organization?

I'm making an application that needs to retrieve all the emails in the organization. Currently, I only get the email of one particular person, i.e. the one who install's the application. How do I get ...
5
votes
1answer
386 views

userinfo.getuseremail() returns noreply@salesforce.com in salesforce

I have created a package in salesforce that will make an http callout request with user's email id to get data for that email and add the data to some custom object. But when I tried using ...
4
votes
1answer
298 views

Retrieve UserId of @mention user from chatter post in Apex

Is there a way to retrieve the user id of @mention user from chatter post in Apex? We can write a before insert trigger on feeditem, but when we display the body (which has @mention user) it simply ...
4
votes
2answers
833 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 ...
6
votes
1answer
131 views

Make packaged test classes which definitely don't fail

I am writing test classes for a managed package which should work in any org. However, for my tests I need to create a test user and I know this can fail in orgs which, for example, have mandatory ...
3
votes
1answer
261 views

Can the User's Last Login date be used in a formula?

I need to calculate the LastLoginDate - Created Date of Users in a formula field. The Last Login Date field is not available here.. Is there a way to get it without having to write code/SOQL?
4
votes
2answers
901 views

how to change email of user in sandbox to something like .sandboxname?

I tried to change an user's active email in my sandbox(Sandbox name:stage) as they didn't want to get further notifications for the actions that we are doing in our environment from : abcd@gmail.com ...
1
vote
1answer
113 views

High Volume Portal User Custom Field on Formula Field

I have created a custom field on the User Object - Canvas_Id__c ... This value is only populated when the user is a high volume portal seat user. I have a custom object Student Task where I want to ...
1
vote
2answers
124 views

ways to add fields to user object

I want to add 10 fields to user object. Shall I add it to User object directly or shall I first create child object of the user object and then add those fields to it? Which one is best approach? any ...
3
votes
1answer
192 views

Render a tab for certain public groups

I have a custom page that overrides the default account page, dividing it into multiple tabs. I was wondering if there was a way to use the "rendered="{!IF($.........." to make the tab available to ...
3
votes
2answers
424 views

Avoiding the password notification to be sent to the User on creation

When i create new user through salesforce UI i dont want the password notification to be sent to the User .Is this possible ?I know one solution is to uncheck the generate Email Notification and new ...
0
votes
2answers
145 views

Updating a User custom field

I have added a custom field of type String to the User standard object. I'm trying to update it from a controller but even though I see the update succeeds in the Debug Log the value is not actually ...
4
votes
1answer
229 views

Prevent majority of users from logging in (+ notification)

I am looking for a way to prevent users from logging in in a certain time span, let's say for a few days after new year's eve to check all data in the system. I thought about the "Login Hours" on a ...
6
votes
2answers
2k 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 = ...
5
votes
3answers
1k 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 ...
4
votes
2answers
474 views

Can a Workflow Rule be created against a User Record? i.e. send an email alert to their manager once the record is deactivated?

We would like to have an email alert sent to the manager of the departed employee once the user record is deactivated. In that email, we would like to include a link to all that employee's open ...
2
votes
2answers
92 views

User Community Nickname

Community Nickname has to be unique across all users? or it has to be unique within a org? As far as I know, username has to be unique across all Salesforce users in the world. Any thoughts?
1
vote
1answer
341 views

Display Self-Service fields on Contact Object

I would like to display Self-Service Portal fields on the contact object. I need the fields "IsActive" and "Last Login". Is it possible by trigger?
1
vote
2answers
247 views

How can I disable Default Account teams

I am looking to disable Default Account Teams. I was wondering if it could be done out of the box. I have looked into removing the related list but that is not possible since it doesn't give me the ...
5
votes
2answers
603 views

User Trigger while changing the Chatter Profile Picture

The chatter profile picture url is saved in the User FullPhotoUrl field. If we try to modify the picture/upload a new picture in the chatter profile image, the trigger in the user object is not ...
4
votes
2answers
200 views

Is there a way to access all user info?

Is there a way to get a drill down through DB/reports all the info related to an user like permission set sharing settings active/inactive( I can get this by Isactive filter) what public groups ...
1
vote
1answer
102 views

Bulk Update the “My Social Accounts and Contacts” Preference for all Users

I'd like to enable Social Accounts and Contacts in our org, and then bulk update all Users to NOT have the "Use Social Accounts and Contacts" setting enabled. This would allow me to then send out a ...
2
votes
1answer
322 views

How can I create a Chatter Free License user in a test class?

I am trying to create a user in a test class and this user needs to be a Chatter Free License. Usertype is the field to set the license but this one is not writable. Any pointers on creating a user ...
7
votes
6answers
551 views

Handling Community Nickname field for Customer Portal registration

We have a customized Force.com Site + Customer Portal for the authenticated portion of the Force.com Site. We have self registration enabled. Currently the nickname and alias fields are required on ...
3
votes
5answers
390 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 ...