• Ankit Sharma 183
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 3
    Replies

Hello Everyone

how to change domain Url name in Marketing Cloud . and how to Import blog in Marketing Cloud.

Linkdlin All connection create as Contact in salesforce. And What data will be get from the Linkdlin.

i have Vf page. There show many of Images. Page will load slow it will time when Loding.

how i Load my vf page fast.

hi

my vf page name /artistportfoliounbranded. when i open this page in url it will change and show my static page name like /ankit.

it can possible please suggest me.

/**
 * An apex class that creates a portal user
 */
public  class SiteRegisterController {
    // PORTAL_ACCOUNT_ID is the account on which the contact will be created on and then enabled as a portal user.
    // you need to add the account owner into the role hierarchy before this will work - please see Customer Portal Setup help for more information.       
    
    
    public SiteRegisterController () {
    }
    public String firstname {set;get;}
     public String lastname {set;get;}    
    public String username {get; set;}
    public String email {get; set;}
     public String userType {set;get;}
    public String password {get; set; }
    public String confirmPassword {get; set; }
    public String communityNickname {set;get; }
    
     public string salesteamprofile = '00e6F000002KX0M';
     public string operationteamprofile = '00e6F000002KX0g'; 
    public string accountteamprofile = '00e6F000002KX0R';
      
    private boolean isValidPassword() {
        return password == confirmPassword;
    }
    
    public PageReference registerUser() {
        // it's okay if password is null - we'll send the user a random password in that case
        if (!isValidPassword()) {
            ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, Label.site.passwords_dont_match);
            ApexPages.addMessage(msg);
            return null;
        }    
        User u = new User();
        u.FirstName = firstname;
        u.LastName = lastname;
        u.Username = email;
        u.Email=email;
           u.UserType__c=userType;
       if(email.length()> 30)
       {
           u.CommunityNickname=email.substring(0,30);
       }
        else
        {
            u.CommunityNickname=email;
        }
        
        if(usertype=='SalesTeam')
        {
            u.ProfileId=salesteamprofile;
        }
        else if(userType == 'AccountTeam')
        {
            U.ProfileId = accountTeamprofile;
            
        }
       else
       {
           u.ProfileId = operationteamprofile;
       }

        // lastName is a required field on user, but if it isn't specified, we'll default it to the username
        String userId = Site.createPortalUser(u, '0016F00002SeAmS' , password);
        if (userId != null) { 
            if (password != null && password.length() > 1) {
                String returl = '';
                if(usertype == '')
                {
                    returl ='/salesteam';
                }
                else if(usertype == 'operationUser')
                {
                    returl ='/operationteam';
                    
                }
                else
                {
                    returl ='/accountteam';
                } 
                return Site.login(username, password, returl);
            }
            else {
                PageReference page = System.Page.SiteRegisterConfirm;
                page.setRedirect(true);
                return page;
            }
        }
        return null;
    }
}




 

hi

my vf page name /artistportfoliounbranded. when i open this page in url it will change and show my static page name like /ankit.

it can possible please suggest me.

Hello, 

I just created a Lightning component with the 'implements="force:appHostable"' attribute in the aura:component tag. 
I have changed My Domain already. 

But when I go to lightning tabs, when selecting the lightning component always shows "-none-" and nothing else... 

Am I missing something?
 
  • November 07, 2016
  • Like
  • 0

Hi,

 

I wants to give EDIT/DELETE link to each record in pagetable. How can I do that?

 

I have tried it with picklist, like I took picklist to select the record and after selection value, applied the edit or delete button.

 

Thank you.

Amol Dixit