• durga prasad 45
  • NEWBIE
  • 5 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 11
    Questions
  • 9
    Replies
hi every one can any one give support when lead convert automatically geeting error. here lead owner is queue
Error:Apex trigger AutoConverter caused an unexpected exception, contact your administrator: AutoConverter: execution of AfterUpdate caused by: System.DmlException: ConvertLead failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Converted objects can only be owned by users. If the lead is not owned by a user, you must specify a user for the Owner field.: [OwnerId]: Trigger.AutoConverter: line 25, column 1 


code:

Trigger AutoConverter on Lead (after insert,after update) {
     LeadStatus convertStatus = [
          select MasterLabel
          from LeadStatus
          where IsConverted = true
          limit 1
     ];
    
   
     List<Database.LeadConvert> leadConverts = new List<Database.LeadConvert>();
                 
     for (Lead lead: Trigger.new) {
          if (lead.isConverted ==false){
          if(lead.Status == 'Convert') {
               Database.LeadConvert lc = new Database.LeadConvert();
               String oppName = lead.LastName;
                           lc.setLeadId(lead.Id);
               lc.setOpportunityName(oppName);
               lc.setConvertedStatus(convertStatus.MasterLabel);
               
               leadConverts.add(lc);
          }
     }
   }
     if (!leadConverts.isEmpty()) {
          List<Database.LeadConvertResult> lcr = Database.convertLead(leadConverts);
     }
     }

 
can any one give how to lock the records from one user to another user while updating 
hi every one can any one give support when lead convert automatically geeting error. here lead owner is queue
Error:Apex trigger AutoConverter caused an unexpected exception, contact your administrator: AutoConverter: execution of AfterUpdate caused by: System.DmlException: ConvertLead failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Converted objects can only be owned by users. If the lead is not owned by a user, you must specify a user for the Owner field.: [OwnerId]: Trigger.AutoConverter: line 25, column 1
when lookup filed selected then automatically populate text filed with some value. text field must be readonly
when creating assignment rule cant showing other object filed in filter criteria we have lookup with that object
lookup relationship not showing other profile expet system administator
hi every one
      i have one doubt how to lock the record when editing here users are same profile and roles. when first user editing the record second users will not be edit same record i want lock that record
User-added image


hii every one when i click on google drive authentication i got some errors like o_auth: state was not redirect and
400. That’s an error.

Error: invalid_request

Required parameter is missing: response_type

Learn moreThat’s all we know.
hi every one
               whos is converting leads to account,contact,opportunity.
    my doubt is i am creating one profile called tele caller and i am sharing lead object to that user . when user open that lead he has all permision but he doesn't have convert option.what is the reason behind that. only system admin can do or any user can convert the lead
hi every one 
         can any body try how to store file in google drive using visual force page. we cant use third party apps.
 
hi every one
        can any one implemented digital signature in visual force page for standred objects. 
hi every one can any one give support when lead convert automatically geeting error. here lead owner is queue
Error:Apex trigger AutoConverter caused an unexpected exception, contact your administrator: AutoConverter: execution of AfterUpdate caused by: System.DmlException: ConvertLead failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Converted objects can only be owned by users. If the lead is not owned by a user, you must specify a user for the Owner field.: [OwnerId]: Trigger.AutoConverter: line 25, column 1
lookup relationship not showing other profile expet system administator
hi every one
               whos is converting leads to account,contact,opportunity.
    my doubt is i am creating one profile called tele caller and i am sharing lead object to that user . when user open that lead he has all permision but he doesn't have convert option.what is the reason behind that. only system admin can do or any user can convert the lead
hi every one 
         can any body try how to store file in google drive using visual force page. we cant use third party apps.
 
hi every one
        can any one implemented digital signature in visual force page for standred objects.