• Palani_Chinnasamy
  • NEWBIE
  • 5 Points
  • Member since 2015
  • Salesforce Developer
  • Congruent Info-Tech Pvt Ltd


  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 4
    Likes Given
  • 7
    Questions
  • 15
    Replies
I am not able to edit Sandbox profile getting following errors.

Please fix the following:
You may not turn off permission Can use dashboards without same license type as running user for this License Type



Thanks,
Palani
 
Hi All,
Please help me with integrating square online payment to salesforce. I referred square developer portal, 
https://docs.connect.squareup.com/
https://squareup.com/help/us/en/article/3853-square-api 
if you share knowledge on this much appreciated.

Thanks,
Palani
Hi All,

I like to add / Remove dynamic rows in custom linghtning component. 

Thanks
Palani
I have created a unmanaged package in my Developer org and when I am installing it into my developer enviroment it freezes on it's installation.
The installation stops and displays a message saying that it's taking a long time to install the package and it will do it in background and send a notification via email.
The notification never arrives and the packege never installs.
 
Hi ,

I have a task to send google calendar invite thu email alert.

I can able to do outlook calendar Invite, Same way I need to send Google Calendar Invite.

Please help me 
Hi All,

I am getting the error When i try to fire a event wit following code 
gotoURL : function (component, event, helper) {
    var urlEvent = $A.get("e.force:navigateToURL");
    urlEvent.setParams({
      "url": "/006/o"
    });
    urlEvent.fire();
}

 
Hi ,

I try to create Employee community on my developer Org likewise Customer Community, But I did get any ways to go ahead.

Please help me to create Employee community on my Developer Org for POC.

Thanks
Palani
 
Hi All,
Please help me with integrating square online payment to salesforce. I referred square developer portal, 
https://docs.connect.squareup.com/
https://squareup.com/help/us/en/article/3853-square-api 
if you share knowledge on this much appreciated.

Thanks,
Palani
I am not able to edit Sandbox profile getting following errors.

Please fix the following:
You may not turn off permission Can use dashboards without same license type as running user for this License Type



Thanks,
Palani
 
Hi all, thanks if advance for your help. I want the phone field to be populated with the country code so I created a flow with process builder that inserts the country code of a selected country in the phone field. The problem I am having now is: when a user manually inserts the country code - on saving the record, process buuilder still populates the phone field with the country code resultig to a duplicate of country code.

Can someone please help with a solution. 
Hi All,

I have a scenario, wherein I have a custom field thats made of 8 characters- first four being letters and the next four digits. I need to increment the letters part every time a new record of this object is inserted and it has to be unique for every record.
I want to do this using apex triggers.
Any help appreciated !
I have to connect emails to salesforce , so that the contacts will be migrated to salesforce from emails (outlooks)
I would like to find out which apps are suitable for this
I need a way that any new contact in outlook will be automatically transfer to salesforce
I need an option for using Outlook for Pop3 servers not Microsoft Exchange Server or Microsoft Office 365
I want to build a custom lightning component to add/ delete new records on click of a button. 
Hi ..
Is there any way that I could export selected rows from a table view ? for example if there is a table with 10 records , I want to export the first , third and fourth (selected with checkbox) ?
I tried to search about it but I'v got no clue .. did I miss something ?
Hi all, I have trigger but I'm stuggling to write the test class (I still don't have the experience to do this on my own yet!) Could anyone point me in the right direction please?
 
trigger DoctorTicket on Zendesk__Zendesk_Ticket__c (before insert, before update){
    Zendesk__Zendesk_Ticket__c ticket = trigger.new[0];
    String opname = ticket.Doctor_Name__c;

    // if there's a value populated, get the ID of the record to be related and update the lookup field
    if(opname != null && opname != ''){
        Doctor__c o = [SELECT Id FROM Doctor__c where Name=:opname LIMIT 1]; //query SFDC for a record

        // if an object was returned and that object is different from the current object, update the field
        if(o.ID != null){
            if(o.ID != ticket.Doctor__c){
                ticket.Doctor__c = o.Id;
            }
        }
    }
}

 
Hi ,

I try to create Employee community on my developer Org likewise Customer Community, But I did get any ways to go ahead.

Please help me to create Employee community on my Developer Org for POC.

Thanks
Palani
 
I have created a unmanaged package in my production account and when I am installing it into my developer enviroment it freezes on it's installation.
The installation stops and displays a message saying that it's taking a long time to install the package and it will do it in background and send a notification via email.
The notification never arrives and the packege never installs.
I have also posted this question in the success community.
Hi All,

I have a scenario, wherein I have a custom field thats made of 8 characters- first four being letters and the next four digits. I need to increment the letters part every time a new record of this object is inserted and it has to be unique for every record.
I want to do this using apex triggers.
Any help appreciated !
I want to build a custom lightning component to add/ delete new records on click of a button. 
Hi ..
Is there any way that I could export selected rows from a table view ? for example if there is a table with 10 records , I want to export the first , third and fourth (selected with checkbox) ?
I tried to search about it but I'v got no clue .. did I miss something ?
Hi all,

I am trying to login into Salesforce Customer Community using Facebook as Auth Provider. 

Issue faced: I am able to sign in to Salesforce community using facebook authentication, however I am not able to fetch the facebook user details such as firstname,lastname,email dynamically using the Registration Handler Class by  using data.firstname,data.lastname,data.email . Currently i am using static values for the fields like firstname,lastname,email 

Expected : Getting dynamic values from facebook in the code below where static values are provided.

Code for Registration Handler that i am using as below.

global class FacebookHandler implements Auth.RegistrationHandler{ 
    global User createUser(Id portalId, Auth.UserData data){
    system.debug('hahahahaha' +portalId);
      User result;
      try {
        //default account to collect Community Members
        Account a = [ SELECT Id
                      FROM Account
                      WHERE name='MyAllergy'
                      LIMIT 1
                  ];
      
       //default profile
      Profile p = [ SELECT Id
                     FROM Profile
                    WHERE name='Custom Customer Community Plus Login User'
                     LIMIT 1
                   ];
       //contact
       Contact c   = new Contact(
        accountId = a.Id,
         email     = 'prateek.sharma@salesforce.com',
         firstName = data.firstName,
         lastName = data.lastname

     //    lastName  = 'testr'
       );     
       insert c;
      //get the alias as username
      String alias = this.getAlias(data.username);
       //user
       User u = new User(
         username          = alias + '@community.com',                                    
         email             = 'prateek.sharma@salesforce.com',
        lastName          = 'testtr',
         firstName         = data.firstName,
        alias             = alias,
         languagelocalekey = 'en_US',
         localesidkey      = 'en_GB',
         emailEncodingKey  = 'UTF-8',
         timeZoneSidKey    = 'GMT',
        profileId         = p.Id,
         contactId         = c.Id
       );
       //binding
       result = u;
     }
     catch(Exception pEx) {
      //re-throwing exception to allow tracing the error from URL
      throw new HandlerException(
         pEx.getStackTraceString()
       );
     }
    return result;           
   }
   //custom exception
   global class HandlerException extends Exception{}
   global void updateUser(Id userId, Id portalId, Auth.UserData data){
        User u = new User(
       id        = userId,
      email     = 'prateek.sharma@salesforce.com',
       lastName  = 'tata',
     firstName = data.firstName,
     alias     = this.getAlias(data.username)
    );
    
     update u;
   }
   global String getAlias(String pUsername) {
     //generate random string (8)
     Blob blobKey           = crypto.generateAesKey(128);
     String key             = EncodingUtil.convertToHex(blobKey);
     String random_username = key.substring(0,8);
     //if not defined, create a random one
     String alias = pUsername != null ?
                     pUsername :
                     random_username;
     //check alias.length() > 8 and chop it
     alias = alias.length() > 8 ?
               alias.substring(0,8) :
               alias;
     return alias;
   }
}

Any help would be appreciated,

Thanks