• salesforce1#
  • NEWBIE
  • 110 Points
  • Member since 2011

  • Chatter
    Feed
  • 4
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 37
    Questions
  • 57
    Replies

How many ways give the permissions to users...

 

 

 

Thanks,

SFDC_Learner

Hi Guys.

 

I need to store a photo of my contacts and need it to be visible on the contact layout page.

 

How can I do this.

 

A previous post suggested using Attachments.. I tried this but you hav to go to the list and click view to see the photo.

 

I need to see the photo as part of the contact layout when a record is edited or viewed.

 

Is this possible?

 

j.themuss

Hi all,

 

I am unable to see the force.com canvas app in my developer account.

Could anyone tell me how i need to activate it ?

 

-

Sneha

Hello,

 

Let say i have one visual force page with Constructor, Getter and Setter methods, What is the order of execution of these methods, it is an interview question which i faced..

 

Regards,

Sujan

Hi All,

in Product i have a external id field,if external id matches i want insert a new product and new standard pricebook and new custom pricebook, delete the old pricebooks and deactivate the product.

i want a upsert operation on product, product are coming from external system, can any one help me on this?
Hi 

pros and cons of Territory management , can any one give the clear picture on this.

what is territory management and why we go for territory manage ment. Can anyone explain with some examples regarding territory management

Hi

 

How to extend report access to group of users in salesforce?

how many ways we can access the report.

Hi

 

How can bypass SOQL statement to fetch more 1000 records in salesforce

Hi

 


How many ways you can invoke an work flow?

Hi

 

How to update a text field based on Date field?

 

Hi

 

How to get a count of million records from object in salesforce?

 

Hi

 

I am having 2 objects they didn't relate to each other but I want to show them in a  single report.

 

object A and B.

 

can u explain it. How can you approach this.

 

 

 

Hi

 

I am new to dev.

Can you explain a scenario integrating login method to third party application.

 

 

Hi

 

In organizations How many users have you supported.

 

 

Regards.

Hi

 

what is package.xml, and where it can be used and purpose.

 

Regards.

Hi

 

How can I change owner for multiple cases at once

 

for ex ramu--->ravi

 

Regards.

Hi

 

Which components cannot be deployed using force.com IDE or change sets. 

 

Regards.

Hi

 

i am newbie to development

 

Difference between Apex class and Apex test class. 

 

purpose of writing testclass.

 

 

Regards.

Hi
what is the purpose of database.dmloptions , which sittuation we are using this type of method.
Give me small example.

Thanks in advance.

Hi

 

how to import records from Junction Objects.

 

Regards

Hi

 

How can call Apex controller class from visualforce page without using the command button.

 

Regards

Hi

 

can u please to provide deployment steps.

 

what are the precautions are take before going to deployment? 

 

Thanks in Advance

Hi

 

How to create additional fields on Task and Event objects .

 

In task and event object i can find only standard fileds, how to create custom fields for those objects.

 

Regards

i am new to salesforce, when i click on the list button send email with pdf data.
I am using trigger to auto conversion lead to opportunity, Please advise is there is any possibility do without trigger code.

Can you please give an example to many to many relationship?

date calculation in visualforce form

Help appreciated- am trying to add a User to Accounts via AccountTeamMembers as we track AccountTeams with custom relationship objects.

 

When a User gets activated (created or made active), my code finds where they have been linked with our custom objects and tries to insert an AccountTeamMember.

 

Gets me: one of those.... "System.DmlException: Insert failed. First exception on row 0; first error: MIXED_DML_OPERATION, DML operation on setup object is not permitted after you have updated a non-setup object (or vice versa): AccountTeamMember, original object: User: []: Trigger.UserActivatedTeamCoverage: line 59, column 1"

 

So it seems I have to do this asynchronusly - can someone assist in adding an @future notation to my code or directing me to guide on using the @future method?

thanks!

 

trigger UserActivatedTeamCoverage on User (after insert, after update) {

    //when a user is activated or inserted, the should be added to the AccountTeams of Accounts they cover via TeamMember
    
    
    // declare some lists
    
    List < EntitySubscription > esSet = new List < EntitySubscription > ();
    List < AccountTeamMember > atms = new List < AccountTeamMember > ();
    List <coverage_Person__c> CPS = new List <Coverage_Person__c> ();
    List < Double > empIds = new List < Double > ();
    List < ID > UserID = new List < ID > ();
    List < AccountShare > ASSES = new List < AccountShare > ();
    List <user> usersTriggering = new List <User> ();

   //add info from the users to the lists for users who are active and have an EMP_id (all should!)
   
    For (User u1:trigger.new){
        if(u1.isActive==true) if (u1.EMP_id__c !=null)
        empIds.add(u1.Emp_Id__c);
        UserID.add(u1.id);
        UsersTriggering.add(u1);
   }
   
   //get a list of team memberships for this person
   
   List <Coverage_Person__c> CP3 = [select name, id, emp_id__c, User__c, Coverage_Team__c  from Coverage_Person__c where emp_id__c IN: empIds];
   system.debug('CP3 the list of coverages=========================='+cp3);
   
   //add the teams to a list
    List <id> CP3Teams   = new List <ID>();
    for(Coverage_person__c es:cp3){CP3Teams.add(es.Coverage_Team__c);}
   system.debug('CP3Teams=======================the teams ids'+CP3Teams);
   
   
   //get the assigned teams of these Teams
   
   List <Assigned_Team__c> Assignments = [select name, id, emp_id__c, Account__c, Coverage_Team__c from Assigned_Team__c where Coverage_team__c IN: CP3Teams or EMP_id__c IN: empIds];
   system.debug('assignments========assigned teams========'+Assignments);
   
   //add the ids of the accounts from the AssTeams to a list
   List <id> AssignmentsAccounts = new List <id>();
   for (Assigned_Team__c os:Assignments){AssignmentsAccounts.add(os.Account__c);}
   system.debug('Assignments Accounts ids ======================= '+AssignmentsAccounts);
   
   //loop through User and find the link to the account, then create an accountTeamMember record for them
   
      For (User u1:UsersTriggering){
          For (Coverage_Person__c C:CP3){
              if(c.User__c==u1.id)
                  For (Assigned_Team__c at:Assignments){
                      if(at.Coverage_Team__c==c.Coverage_Team__c){
                      AccountTeamMember atm = new AccountTeamMember (AccountID=at.Account__c, UserId=u1.id, TeamMemberRole='Coverage');
                      atms.add(atm);
                   }
                }
                }
           }
    insert atms;
}

 

 

  • February 22, 2013
  • Like
  • 0

Can field level security be used to make a field required?

How many ways give the permissions to users...

 

 

 

Thanks,

SFDC_Learner

Hi
can any one tell me regex form of 999-999-9999 this?

I have used phoneRegex = '\\D*?(\\d\\D*?){10} but Now I want to restrict the special charatcter entry. It is acepting all the  special characters

I am giving this input.It is taking, I want to restrict that.

how will I do, please give me some suggession as soon as possible.

 

 

Thanks

 

 

Hi,

 

I am trying to update user in a batch apex and when there is any error I am trying capture those and store in a custom object but I am getting Mixed DML operation error.

 

Here is the flow:

  • Contact Updated during the course of the day
  • All contacts are flagged for nightly processing
  • At the mid night my Batch apex picks up those contact and then verify existence of portal user for them.
  • If portal user exist and there is change in the email then i want to update username and email both
  • If any error occur like Username already exist, duplicate user etcs I want to track in custom object.

Please suggest.

 

Snip of code:

 

Batch Apex: 

 

Database.SaveResult[] updateResult = Database.update(lstUserToUpdate,false); 
ExpectionTrackingCls.getErrorStatus(lstUserToUpdate,updateResult); 

 

ExpectionTrackingCls

 

 

public static void getErrorStatus(List<User> lstUser,LIST<Database.SaveResult> dbSaveResult)
    {
        List<Errorlog__c> errObj=new List<Errorlog__c>();
        for(Database.SaveResult sr : dbSaveResult){ 
            if (sr.isSuccess()==false) 
            {              
				for(Database.Error err : errs)
				{
					Errorlog__c newErrorRecord = new Errorlog__c();
					newErrorRecord.name = lstUser[i].username;
					newErrorRecord.message__c = err.getMessage()+err.getStatusCode();
					errObj.add(newErrorRecord);
				}
            }
        }
	}

 

 

 

 

  • February 15, 2013
  • Like
  • 0

Hi

 

How to extend report access to group of users in salesforce?

how many ways we can access the report.

Hi,

 

  In my trial Org I have created a customer portal and I have done all the setup but tabs are not showing when I am login into customer portal.

 

   but previously I done customer portal in my packaged Org and when I am try login that customer portal the tabs are showing my question is Is I need to do any extra setup in my trial Org?

Hi ,

 

Pls answer these senarios.?

 

1) I want to send a mail every 1st and if no response 5th again we need to send mail wf?

 

2)I Have created a user & through apex class n user did not get any mail what would be reson?

 

3)how to recall a apporved record?

 

4) I have a button in vf page and if I click button  on that page it should go to the a record and salesforce id of that record need to dispalyed in a field?

 

5) how will u convert salesforce 18 digit to 15 digit id?without CASESAFEID?

 

6) How to read the parameter value from the URL in Apex?

 

Thanks

Chandu

Hi all,

 

Can anybody tell me how to get good command in integration.If anybody worked in integration would u like to teach me???

 

Apart from this i have few questions to ask pls answer these.

 

1) What is Dynamic apex and give some senarios to explain this?

2)What is constrcutor? and give some senarios to explain this?

3)Did you worked on service cloud?Can you explain me customization in service cloud how you do that?

4)one-one relationship?

5)wrapper class?example?

6)futute annotation?

What Is Streaming API

 

Please send the answers in details with exapmles.

 

Thanks

Chandu

Hi

 

How can bypass SOQL statement to fetch more 1000 records in salesforce

Hi

 


How many ways you can invoke an work flow?

Hi

 

How to update a text field based on Date field?

 

Hi

 

How to get a count of million records from object in salesforce?

 

Hi

 

I am having 2 objects they didn't relate to each other but I want to show them in a  single report.

 

object A and B.

 

can u explain it. How can you approach this.