• bhagi
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 25
    Questions
  • 16
    Replies

Hi Everyone,

 

         How to get the 1st 200 records in account object using pagenation

can anyone explain with sample code please..

 

 

Thanks&Records

neeru

  • September 06, 2012
  • Like
  • 0

Hi All,

 

Is it possible to schedule the Tasks..

 

 

Can you suggest me please??

 

Thanks&Regards

Bhagi

  • July 23, 2012
  • Like
  • 0

Hi all,

      when i share something in chatter free user it automatically creats a task  to standard platform user profile

i write the trigger its save but its not creating a task to standard platform user

 

List<User> users = [SELECT Id FROM User where Profile.Name = 'Standard Platform User' Limit 1];
        if(users.size() > 0){
            User usr = users.get(0);
        for(FeedItem fItem : fItems){
if(fItem.Body != null && groups.size() > 0 && (fItem.Body.toUpperCase().Contains('*')) || (fItem.Body.toUpperCase().Contains('#HOS'))){
                Task newTask = new Task();
                newTask.OwnerId =usr.Id;
                if(fItem.Body.toUpperCase().Contains('*')){
                    newTask.Subject = groupMap.get(fItem.ParentId)+' * '+userInfo.getFirstName();
                    newTask.Description = fItem.Body.subString(4,fItem.Body.length());
                    newTask.ActivityDate = System.today()+ 2;
                }else if(fItem.Body.toUpperCase().Contains('#HOS')){
                    newTask.Subject = groupMap.get(fItem.ParentId)+' #HOS '+userInfo.getFirstName();
                    newTask.Description = fItem.Body.subString(4,fItem.Body.length());
    }                newTask.ActivityDate = System.today()+ 2;

can you suggest me anyone??

 

Thanks&Regards

bhagi

  • July 19, 2012
  • Like
  • 0

Hi all,

      when i share something in chatter free user it automatically creats a task  to standard platform user profile

i write the trigger its save but its not creating a task to standard platform user

 

List<User> users = [SELECT Id FROM User where Profile.Name = 'Standard Platform User' Limit 1];
        if(users.size() > 0){
            User usr = users.get(0);
        for(FeedItem fItem : fItems){
if(fItem.Body != null && groups.size() > 0 && (fItem.Body.toUpperCase().Contains('*')) || (fItem.Body.toUpperCase().Contains('#HOS'))){
                Task newTask = new Task();
                newTask.OwnerId =usr.Id;
                if(fItem.Body.toUpperCase().Contains('*')){
                    newTask.Subject = groupMap.get(fItem.ParentId)+' * '+userInfo.getFirstName();
                    newTask.Description = fItem.Body.subString(4,fItem.Body.length());
                    newTask.ActivityDate = System.today()+ 2;
                }else if(fItem.Body.toUpperCase().Contains('#HOS')){
                    newTask.Subject = groupMap.get(fItem.ParentId)+' #HOS '+userInfo.getFirstName();
                    newTask.Description = fItem.Body.subString(4,fItem.Body.length());
    }                newTask.ActivityDate = System.today()+ 2;

can you suggest me anyone??

 

Thanks&Regards

bhagi

  • July 19, 2012
  • Like
  • 0

HI Everyone

 

 

                       How to give permission to a chatter free user to download apps from App Exchange or how system adminstrator  share his apps to a chatter free or a chatter External user.

 

                         As salesforce given that

"Anyone can browse and test drive AppExchange listings. Salesforce administrators and users with the “Download AppExchange
packages” permission can install AppExchange apps. To publish an app on AppExchange, a user must have both “Create
AppExchange packages” and “Upload AppExchange packages” permissions".

 

Thanks&Regards

bhagi

  • July 18, 2012
  • Like
  • 0

HI Everyone

 

                       How to give permission to a chatter free user to download apps from App Exchange or how system adminstrator  share his apps to a chatter free or a chatter External user.

 

                         As salesforce given that

"Anyone can browse and test drive AppExchange listings. Salesforce administrators and users with the “Download AppExchange
packages” permission can install AppExchange apps. To publish an app on AppExchange, a user must have both “Create
AppExchange packages” and “Upload AppExchange packages” permissions".

 

Thanks&Regards

Bhagi

  • July 18, 2012
  • Like
  • 0

Hi All,

 

GotoMeeting/Goto Webinars integration to our salesforce is it possible???

 

If it is possible why salesforce not integrated those apps??

 

Can anybody suggest me..

 

Thanks&Regards

Bhagi

  • July 13, 2012
  • Like
  • 0

Hi All,

 

How i put the login buttion for the chatter free users on same page..

  • July 12, 2012
  • Like
  • 0

hi all,

 

how the login buttion is enable for chatter frre users in manage users..can any one help me??

  • July 12, 2012
  • Like
  • 0

   i have a one Citrix based application  like GoTOMeeting ..i want to integrate that appication into my salesforce     

 

Can anyone suggest me salesforce support Citrix Based Applications or Not...

 

 

 

Thanks&Regards

Bhagi

  • July 10, 2012
  • Like
  • 0

Hi Everyone,

 

i have one  Citrix Based appication i want to Integrate that appication in to my salesforce....

 

Is It Possible??

 

If it is possible can you suggest me how to integrate

 

 

Thanks&Regards

Bhagi

 

 

 

  • July 09, 2012
  • Like
  • 0

hi All,

 

 

   i have a one Citrix based application  like GoTOMeeting ..i want to integrate that appication into my salesforce     

 

Can anyone suggest me salesforce support Citrix Based Applications or Not...

 

 

 

Thanks&Regards

Bhagi

  • July 09, 2012
  • Like
  • 0

i have maintenence renewal objectwhen end date reaches to 60days before the end date it has to create a new record and send an email with some certain conditions which i mentioned in the code..

 

please help out this

 

global class MRUpdate implements  Database.Batchable<sObject> {

global final string query;

global MRUpdate (String q)
{
   query = q;
}

global Database.QueryLocator start(Database.BatchableContext BC){

   return Database.getQueryLocator(query);
}

global void execute(Database.BatchableContext BC, List<Maintence_Renewal__c> scope)
{
  List<Maintence_Renewal__c> MRSToUpdate = new List<Maintence_Renewal__c>();
   MRSToUpdate=[select id,name,Start_Date__c,End_Date__c,testcontract__c,Email__C,
                 Amount__c from Maintence_Renewal__c ];
  for(Maintence_Renewal__c m :MRSToUpdate)
  {
  if(m.End_Date__c==(m.know_date__c))
    {
     m.Start_Date__c=MRSToUpdate.End_Date__c;
     m.testcontract__c=MRSToUpdate.testcontract__c;
     m.Email__c=MRSToUpdate.Email__C;
     m.Amount__c=MRSToUpdate.Amount__c+(MRSToUpdate.Amount__c *5/100);
    }
  }
}
global void finish(Database.BatchableContext BC){
  // Get the ID of the AsyncApexJob representing this batch job  
  // from Database.BatchableContext.    
  // Query the AsyncApexJob object to retrieve the current job's information.  

 AsyncApexJob a = [Select Id, Status, NumberOfErrors, JobItemsProcessed,
   TotalJobItems, CreatedBy.Email
   from AsyncApexJob where Id =:BC.getJobId()];

  // Send an email to the Apex job's submitter notifying of job completion.  
  Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
  String[] toAddresses = new String[] {a.CreatedBy.Email};
  mail.setToAddresses(toAddresses);
  mail.setSubject('Apex Sharing Recalculation ' + a.Status);
  mail.setPlainTextBody('The batch Apex job processed ' + a.TotalJobItems +
    ' batches with '+ a.NumberOfErrors + ' failures.');

  Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });
}

}

 

Thanks&Regards

bhagi

  • July 05, 2012
  • Like
  • 0

hi..

 i wrote trigger on contract object.and it have some fields like start date,end date..and the contract period is 1year.but my need is before 60days of end date email will sent to the user..

 

 

i write the trigger..and i add the function today() the email is came..but how to add the 60days before of end date??

 

can anyone suggest me please??

 

Thanks&Regards

Bhagi.n

  • July 02, 2012
  • Like
  • 0

hi...

     i need to prepare a time sheet for every 15days so that i need to use the calender functionality in such a way that

the 1-15days come along with the days as per the months

 

for example 

thursday        1

 friday             2

saturday         3                        

---                   --

---                   --

---                 --

thursday      15

 

                  these days should be change as per month we selected...

 

Thanks&Regards

Bhagi

  • June 28, 2012
  • Like
  • 0

hi...

     i need to prepare a time sheet for every 15days so that i need to use the calender functionality in such a way that

the 1-15days come along with the days as per the months

 

for example 

thursday        1

 friday             2

saturday         3                        

---                   --

---                   --

---                 --

thursday      15

 

                  these days should be change as per month we selected...

 

Thanks&Regards

Bhagi

  • June 28, 2012
  • Like
  • 0

Can We joined two objects in a single report with diffrent sections If it is possible can u anyone tell me the apporch please

 

i have project info and Description as two objects and my need is generate a report with this two objects in such a way that projectinfo at top and desciption is below with some same fields......

 

Thanks&Regards

Bhagi

  • June 27, 2012
  • Like
  • 0

i currently want to access mobile number of a user from feeditem i came across the above error ,how can i access it

  suggest me.the code was executed but we share something in chatter that time  the above error is came

 

 

 

 

Thanks@Regards

Bhagi

  • June 26, 2012
  • Like
  • 0

  i currently want to access mobile number of a user from feeditem i came across the above error ,how can i access it

  suggest me.the code was executed but we share something in chatter that time  the above error is came

 

 

 

 

Thanks@Regards

Bhagi

  • June 26, 2012
  • Like
  • 0

hi,

my need is we share something in chatter by using @ function  particular users only recieve the message their mobiles(using of sms magic application).

i write the trigger its working but the sms will be going multiple users..

can anyone help me..please

 

trigger bouncedTrigger66 on FeedItem (after insert) {
        List<smagicbasic__smsMagic__c> smsObjects = new List<smagicbasic__smsMagic__c>();
        String tplText = null;
        String query = null;
        List<sObject> sObjects = null;
        Id leadId = null;
        EntitySubscription es;
        list<user> uu;
        Id userId = UserInfo.getUserId();
        Id orgId = UserInfo.getOrganizationId();
for (FeedItem f : Trigger.new)
{
      String parentId = f.parentId;
    if(parentid!=null)

    {
    es = [SELECT id, parentid, subscriberid, parent.name FROM EntitySubscription WHERE parentid = : parentid];
     if(es.subscriberid!=null)

       {
     uu = [select id,MobilePhone,name from user where id = :es.subscriberid];
       }

     }
      for(user u :uu)
       {
        if(u.MobilePhone != null){
        tplText = 'F.body';
        smagicbasic__smsMagic__c smsObj = new smagicbasic__smsMagic__c();
        smsObj.smagicbasic__PhoneNumber__c = u.MobilePhone;
        smsObj.smagicbasic__SMSText__c = tplText;
        smsObj.smagicbasic__senderId__c = 'smsMagic';
        smsObj.smagicbasic__Name__c = u.Name;
        smsObjects.add(smsObj);
       }
        }
   
}
insert smsObjects;
}

 

Thanks&Regards

bhagi

 

 

 

  • June 25, 2012
  • Like
  • 0

Hi Everyone,

 

         How to get the 1st 200 records in account object using pagenation

can anyone explain with sample code please..

 

 

Thanks&Records

neeru

  • September 06, 2012
  • Like
  • 0

Hi all,

      when i share something in chatter free user it automatically creats a task  to standard platform user profile

i write the trigger its save but its not creating a task to standard platform user

 

List<User> users = [SELECT Id FROM User where Profile.Name = 'Standard Platform User' Limit 1];
        if(users.size() > 0){
            User usr = users.get(0);
        for(FeedItem fItem : fItems){
if(fItem.Body != null && groups.size() > 0 && (fItem.Body.toUpperCase().Contains('*')) || (fItem.Body.toUpperCase().Contains('#HOS'))){
                Task newTask = new Task();
                newTask.OwnerId =usr.Id;
                if(fItem.Body.toUpperCase().Contains('*')){
                    newTask.Subject = groupMap.get(fItem.ParentId)+' * '+userInfo.getFirstName();
                    newTask.Description = fItem.Body.subString(4,fItem.Body.length());
                    newTask.ActivityDate = System.today()+ 2;
                }else if(fItem.Body.toUpperCase().Contains('#HOS')){
                    newTask.Subject = groupMap.get(fItem.ParentId)+' #HOS '+userInfo.getFirstName();
                    newTask.Description = fItem.Body.subString(4,fItem.Body.length());
    }                newTask.ActivityDate = System.today()+ 2;

can you suggest me anyone??

 

Thanks&Regards

bhagi

  • July 19, 2012
  • Like
  • 0

HI Everyone

 

                       How to give permission to a chatter free user to download apps from App Exchange or how system adminstrator  share his apps to a chatter free or a chatter External user.

 

                         As salesforce given that

"Anyone can browse and test drive AppExchange listings. Salesforce administrators and users with the “Download AppExchange
packages” permission can install AppExchange apps. To publish an app on AppExchange, a user must have both “Create
AppExchange packages” and “Upload AppExchange packages” permissions".

 

Thanks&Regards

Bhagi

  • July 18, 2012
  • Like
  • 0

hi all,

 

how the login buttion is enable for chatter frre users in manage users..can any one help me??

  • July 12, 2012
  • Like
  • 0

i have maintenence renewal objectwhen end date reaches to 60days before the end date it has to create a new record and send an email with some certain conditions which i mentioned in the code..

 

please help out this

 

global class MRUpdate implements  Database.Batchable<sObject> {

global final string query;

global MRUpdate (String q)
{
   query = q;
}

global Database.QueryLocator start(Database.BatchableContext BC){

   return Database.getQueryLocator(query);
}

global void execute(Database.BatchableContext BC, List<Maintence_Renewal__c> scope)
{
  List<Maintence_Renewal__c> MRSToUpdate = new List<Maintence_Renewal__c>();
   MRSToUpdate=[select id,name,Start_Date__c,End_Date__c,testcontract__c,Email__C,
                 Amount__c from Maintence_Renewal__c ];
  for(Maintence_Renewal__c m :MRSToUpdate)
  {
  if(m.End_Date__c==(m.know_date__c))
    {
     m.Start_Date__c=MRSToUpdate.End_Date__c;
     m.testcontract__c=MRSToUpdate.testcontract__c;
     m.Email__c=MRSToUpdate.Email__C;
     m.Amount__c=MRSToUpdate.Amount__c+(MRSToUpdate.Amount__c *5/100);
    }
  }
}
global void finish(Database.BatchableContext BC){
  // Get the ID of the AsyncApexJob representing this batch job  
  // from Database.BatchableContext.    
  // Query the AsyncApexJob object to retrieve the current job's information.  

 AsyncApexJob a = [Select Id, Status, NumberOfErrors, JobItemsProcessed,
   TotalJobItems, CreatedBy.Email
   from AsyncApexJob where Id =:BC.getJobId()];

  // Send an email to the Apex job's submitter notifying of job completion.  
  Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
  String[] toAddresses = new String[] {a.CreatedBy.Email};
  mail.setToAddresses(toAddresses);
  mail.setSubject('Apex Sharing Recalculation ' + a.Status);
  mail.setPlainTextBody('The batch Apex job processed ' + a.TotalJobItems +
    ' batches with '+ a.NumberOfErrors + ' failures.');

  Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });
}

}

 

Thanks&Regards

bhagi

  • July 05, 2012
  • Like
  • 0

Can We joined two objects in a single report with diffrent sections If it is possible can u anyone tell me the apporch please

 

i have project info and Description as two objects and my need is generate a report with this two objects in such a way that projectinfo at top and desciption is below with some same fields......

 

Thanks&Regards

Bhagi

  • June 27, 2012
  • Like
  • 0

i currently want to access mobile number of a user from feeditem i came across the above error ,how can i access it

  suggest me.the code was executed but we share something in chatter that time  the above error is came

 

 

 

 

Thanks@Regards

Bhagi

  • June 26, 2012
  • Like
  • 0

hi,

my need is we share something in chatter by using @ function  particular users only recieve the message their mobiles(using of sms magic application).

i write the trigger its working but the sms will be going multiple users..

can anyone help me..please

 

trigger bouncedTrigger66 on FeedItem (after insert) {
        List<smagicbasic__smsMagic__c> smsObjects = new List<smagicbasic__smsMagic__c>();
        String tplText = null;
        String query = null;
        List<sObject> sObjects = null;
        Id leadId = null;
        EntitySubscription es;
        list<user> uu;
        Id userId = UserInfo.getUserId();
        Id orgId = UserInfo.getOrganizationId();
for (FeedItem f : Trigger.new)
{
      String parentId = f.parentId;
    if(parentid!=null)

    {
    es = [SELECT id, parentid, subscriberid, parent.name FROM EntitySubscription WHERE parentid = : parentid];
     if(es.subscriberid!=null)

       {
     uu = [select id,MobilePhone,name from user where id = :es.subscriberid];
       }

     }
      for(user u :uu)
       {
        if(u.MobilePhone != null){
        tplText = 'F.body';
        smagicbasic__smsMagic__c smsObj = new smagicbasic__smsMagic__c();
        smsObj.smagicbasic__PhoneNumber__c = u.MobilePhone;
        smsObj.smagicbasic__SMSText__c = tplText;
        smsObj.smagicbasic__senderId__c = 'smsMagic';
        smsObj.smagicbasic__Name__c = u.Name;
        smsObjects.add(smsObj);
       }
        }
   
}
insert smsObjects;
}

 

Thanks&Regards

bhagi

 

 

 

  • June 25, 2012
  • Like
  • 0

Hi..Everyone..

I Integrated Sms Magic Application in to my salesforce..when ever we share something in chatter the sms will go to the group members(chatter) their mobilephones

  • June 20, 2012
  • Like
  • 0