• MFrederick
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 2
    Likes Given
  • 1
    Questions
  • 3
    Replies
Is it possible to move a chat visitor up in the chat queue based on login user's account? We don't want  to route them to a dedicated chat agent  but just change their queue position so they are higher in the queue and have a shorter wait time. If anyone has done this that would be good information to have. Thanks
I have tried and tried to delete an Apex class created when I tested out the 'sites' functionality.  It is blocking the install of NPSP 3.0 because the class assumes we are using portals.  

How can you delete an Apex class?

I have tried the following:
1.  Using Eclipse with Force.com IDE - marking the xml file from 'Active' to 'Delete'  = result is file says it deployed successfully - it shows in Eclipse in the XML as still status Deleted---but in SF the file is still active.  It only lets me delete Apex tests this way...not the actual Apex file being tested.
2.  Deleting in a sandbox - then there is nothing to put into an oubound deployment to production server
3.  Marking as deleted as in #1 but in the Sandbox and then deploying to production server from the Sandbox...it still doesn't work

What else keeps an Apex file from deleting or even being able to update its code?  If it is dependencies and I cant remove the dependent references from the code how do I remove the dependencies.

I tried also deleting the Visual Force Pages that are related to the Apex class.  It won't let me delete them either.  Activating 'sites' really has messed up my ability to deploy/install NPSP 3.0 to my SF instance.  It sets up bunches of Visual Force Pages and Apex code files in the system.  It also lowers the amount of tested code for deployment.  I can't figure out how to get rid of all these Apex Code files and Visual Force pages because the system won't let me delete it no matter what I try.
Hello,

Here's the scenario : one active community, one account, two contacts. The 2 contacts have the same email address. You want to create a community user for contact One, it associates with contact Two.

Code in CommunitiesSelRegController, called by a commandButton in apex page :

public void test()
    {
        Account a = new Account(Name='Account test', OwnerId='005A0000001fgpe' ); //Owner = me, must have a role
        insert a;
       
        List<Contact> lc = new list<Contact>{
                new Contact(LastName='One', email='same@mail.com', AccountId=a.Id),
                new Contact(LastName='Two', email='same@mail.com', AccountId=a.Id),
                new Contact(LastName='Three', email='different@mail.com', AccountId=a.Id)
                    };
        insert lc;
       
        User u = new User();
        u.userName = lc[1].email;
        u.email = lc[1].email;
        u.FirstName = 'test';   
        u.LastName = lc[1].LastName;
        u.alias = 'watvr';
        u.CommunityNickName=u.alias;
        u.ProfileId = '00eA0000000yex2'; //Customer community user profile
        u.ContactId = lc[1].Id;
         u.CompanyName = a.Name;
        system.debug(u);     // will output User:{ ...ContactId = Two.Id ...}
        String userId = Site.createPortalUser(u, a.Id, null, true);
        system.debug(u);// will output User:{ ...ContactId = One.Id ...}
        }

Don't know where to report this bug...
Hello,

Here's the scenario : one active community, one account, two contacts. The 2 contacts have the same email address. You want to create a community user for contact One, it associates with contact Two.

Code in CommunitiesSelRegController, called by a commandButton in apex page :

public void test()
    {
        Account a = new Account(Name='Account test', OwnerId='005A0000001fgpe' ); //Owner = me, must have a role
        insert a;
       
        List<Contact> lc = new list<Contact>{
                new Contact(LastName='One', email='same@mail.com', AccountId=a.Id),
                new Contact(LastName='Two', email='same@mail.com', AccountId=a.Id),
                new Contact(LastName='Three', email='different@mail.com', AccountId=a.Id)
                    };
        insert lc;
       
        User u = new User();
        u.userName = lc[1].email;
        u.email = lc[1].email;
        u.FirstName = 'test';   
        u.LastName = lc[1].LastName;
        u.alias = 'watvr';
        u.CommunityNickName=u.alias;
        u.ProfileId = '00eA0000000yex2'; //Customer community user profile
        u.ContactId = lc[1].Id;
         u.CompanyName = a.Name;
        system.debug(u);     // will output User:{ ...ContactId = Two.Id ...}
        String userId = Site.createPortalUser(u, a.Id, null, true);
        system.debug(u);// will output User:{ ...ContactId = One.Id ...}
        }

Don't know where to report this bug...

Hello Team:
I'm debugging a portal issue trying to create a portal user from a Sites page. 
Here is the code I'm trying to execute:
try{
userId = Site.createPortalUser(u, accountId, password, true);
} catch (Exception e){
system.debug(' error in creating User Account ' + e.getMessage());
}

Here is my debug log:
14:43:20.744 (744838000)|METHOD_ENTRY|[118]|01pE0000001gvec|SiteRegisterController.__sfdc_password()
14:43:20.744 (744925000)|METHOD_EXIT|[118]|01pE0000001gvec|SiteRegisterController.__sfdc_password()
14:43:20.745 (745121000)|SYSTEM_METHOD_ENTRY|[118]|system.Site.createPortalUser(SObject, String, String, Boolean)
14:43:20.754 (754125000)|SYSTEM_METHOD_EXIT|[118]|system.Site.createPortalUser(SObject, String, String, Boolean)
14:43:20.754 ()|SYSTEM_METHOD_ENTRY|[138]|System.debug(ANY)
14:43:20.754 (754237000)|USER_DEBUG|[138]|DEBUG| userId == nul 

My try is not blowing up but the user is not getting created either. Any ideas?

 

Thank you,