• Suman M
  • NEWBIE
  • 25 Points
  • Member since 2012

  • Chatter
    Feed
  • 1
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 19
    Questions
  • 17
    Replies
Hi,

We have a community in salesforce, when users are trying to register to the community we are gettinig this 'Limit Exceeded' Error.

Screen Capture of Limit Exceed Error on community registration

I have checked the Customer Community user licenses for our Org, we have plenty of licenses left, what could be the possible reason for this issue.

Please help, Thank You.
Hi everyone,
I need your help on the below.

I have got a requirment where I need to generate a report that should capture the total login time of users i.e.; Login Time - LogOut Time = total login hours.

Is there anyway we can achieve this, Please help. Thank You
Hi,

I need help in getting options about refreshing a full copy sandbox from Production without getting data(Records) from Production.

Ours is a banking project, Production data is very secured, So we are not even allowed to get the Production live data into Full Copy sandbox during refresh.

We are looking for options to Copy only Configurations from Production into full copy sandbox.

Could someone please help me on this. Thank You. 
Hi,

in our organization we are standardizing few profiles, i.e.; making 3 profiles ( A, B, C ) into 1 ( X ).

Currently the system is like, we have few validation rules where we are restricting B or C profiles from the above 3 profiles. So, now when we Club the 3 profiles into 1. now is the validation rule we have to replace B or C profile with X, but all the users under X will be restricted through this validation rule. we want to overcome this situation. Is there any way for this. Can someone help on this. Thank You. 
Hi,

I Have a VF Page which displays the EmailTemplate Name for user selection, Once an user selects a Template name and click submit I need to Pass that selected value to the Controller. I'm getting stuck here, pls help on this. Thank You

VF Page:

<apex:page controller="Opt_In_Out_Renewal_Class">
    <apex:sectionHeader title="SAP OptIn Email Template Selection"/>
        <apex:form >
            <apex:messages styleClass="error" style="color:red" />
            <apex:pageBlock title="Select an Email Template">
                <apex:selectList value="{!OptInTemplates}" size="1">
                    <apex:selectOptions value="{!OptInRenewalNoticeTemplate}"/>
                </apex:selectList>
            </apex:pageBlock>
            <apex:commandButton value="Submit" action="{!Submit}"/>
            <apex:commandButton value="Cancel" action="{!Cancel}"/>
        </apex:form>
</apex:page>


Controller:

public class Opt_In_Out_Renewal_Class
{
    public ID RenewalID;
    public PageReference P;
    map<Id,String> mapOptIntemplates = new map<Id,String>();
    map<Id,String> mapOptOutTemplates = new map<Id,String>();
    List<EmailTemplate> result;
    integer i=0;
    public Opt_In_Out_Renewal_Class()
    {
        RenewalID=ApexPages.currentPage().getParameters().get('RenewalID');
    }
   
    public String OptInTemplates { public get; public set; }
    public List<SelectOption> getOptInRenewalNoticeTemplate()
    {
        List<SelectOption> OptIns= new List<SelectOption>();
        for (EmailTemplate t : [select Id,Name from EmailTemplate where FolderId = '00l70000001QZrV' AND Name Like '%Renewal Notice template- Opt In%'])
        {
            OptIns.add(new SelectOption(t.Id,t.Name));
            mapOptIntemplates.put(t.Id,t.Name);
        }
        return OptIns;
    }
    public void setOptInTemplates(String value)
    {
       
    }
    public String OptOutTemplates{public get; public set;}
    public List<SelectOption> getOptOutRenewalNoticeTemplate()
    {
        List<SelectOption> OptOuts= New List<SelectOption>();
        for (EmailTemplate t1:[select Id, Name From EmailTemplate Where FolderId = '00l70000001QZrV' AND Name Like'%Renewal Notice template- Opt Out%'])
        {
            OptOuts.add(new SelectOption(t1.Id,t1.Name));
            mapOptOutTemplates.put(t1.Id,t1.Name);
        }
        return OptOuts;
    }
   
    public PageReference Submit()
    {
        result=(List<EmailTemplate>)[select Name from EmailTemplate where Name = :mapOptIntemplates.get(OptInTemplates)];
        system.debug('***Name***'+result);
        for(i=0;i<result.length;i++)
        {
        if(result[i]=='Renewal Notice template- Opt In_Detailed')
        {
            P = New PageReference('/_ui/core/email/author/EmailAuthor?p3_lkid='+RenewalID+'&retURL=%2F'+RenewalID+'&template_id='+'00X70000001X0aT');
        }
        else if(result[i]=='Renewal Notice template- Opt In_One Price')
        {
            P = New PageReference('/_ui/core/email/author/EmailAuthor?p3_lkid='+RenewalID+'&retURL=%2F'+RenewalID+'&template_id='+'00X70000001X57E');
        }
        }
        return P;
    }
    public PageReference Cancel()
    {
        P = New PageReference('/'+RenewalID);
        return P;
    }
}

Hi All,

 

Could someone please help me on the below scenario.

 

There are many profiles in one Sandbox, I wanted to move all the profiles from one sandbox environment to another sandbox. Now I'm doing this manually, by setting up each and every thing in every profile.

 

Is there any other way to do this. any way to automate this.

 

Please help me on this. Thank You

Hi All,

 

Could someone please help me on the below requirement.

 

I'm creating a New Object named ' History_Object ', Whenever I create or update a record in another Object, There should be a Record Created in the History_Object. How to achieve this.

 

Someone please help me ASAP. Thank You. 

Hi,

 

I have created a Custom Picklist Field ( Country__c ) in a Standard Object ( Contact ). I have created a VF page and have a selectList component in it, I want to pass the Picklist filed values into VF page. Please help me on this.

 

VF Page:

 

<apex:page standardController="Contact" extensions="countryExtension" standardStylesheets="true">

<apex:form >
<apex:pageBlock title="Contact Edit" mode="edit">
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value=" Save "> </apex:commandButton>
<apex:commandButton action="{!cancel}" value="Cancel"></apex:commandButton>
</apex:pageBlockButtons>
<apex:pageBlockSection title="General Information" columns="2">
<apex:inputField value="{!Contact.FirstName}"></apex:inputField>
<apex:inputField value="{!Contact.LastName}"></apex:inputField>
<apex:inputField value="{!Contact.Department}"></apex:inputField>
<apex:inputField value="{!Contact.Phone}"></apex:inputField>

<apex:inputField value="{!Contact.Email}"></apex:inputField>

</apex:pageBlockSection>
<apex:pageBlockSection columns="1" showHeader="false">
<apex:pageBlockSectionItem >
<apex:outputLabel value="Country Name" for="accts"></apex:outputLabel>
<apex:selectList id="accts" value="{!Contact.Country__c}" size="1" title="Contact">
<apex:selectOptions value="{!accts}"></apex:selectOptions>
</apex:selectList>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>

 

Controller:

 

public class countryExtension
{
public Contact c;

public countryExtension(ApexPages.StandardController stdController)
{
this.c = (Contact)stdController.getRecord();
}
public List<selectOption> getaccts()
{
List<selectOption> options = new List<selectOption>();
options.add(new selectOption('', '- None -'));
for (Contact c : [SELECT id, Country__c FROM Contact Limit 1])
{
System.debug(c);
options.add(new selectOption(c.id, c.Country__c));

}
return options;
}
}

 

Hi,

 

Please help me with the below scenario, I have Visualforce page through which I can select a value from Picklist and based on the Picklist value particular Checkboxes will be displayed on the page. My Requirment is when a checkbox value is selected and Save botton is clicked, then the checkbox value need to be stored in a TextArea Field in the respective Object.

 

Selected Checkbox values should be displayed in a TextArea Field ' PlacesVisisted__c ' in the Contact Object.

 

Please help me on this scenario. ThankYou.

 

Below is my Visualforce Page.

 

<apex:page standardController="Contact">
<apex:form >
<apex:pageBlock title="Update Contact Details">
 <apex:pageBlockButtons location="bottom">
  <apex:commandButton action="{!save}" value="Save"/>
  <apex:commandButton action="{!cancel}" value="Cancel"/>
 </apex:pageBlockButtons>
<apex:pageBlockSection id="NewPage" title="Select The Country">
    <apex:inputField value="{!Contact.Country__c}">
    <apex:actionSupport event="onchange" reRender="IndiaBlock, USBlock, ChinaBlock, AusesBlock"/>
    </apex:inputField>
    <apex:inputText value="{!Contact.Name}"/>
</apex:pageBlockSection> 
<apex:outputPanel id="IndiaBlock">
 <apex:pageBlockSection rendered="{!Contact.Country__c == 'India'}" id="SampleSendInfoBlock" title="Select Places Visited">
    <apex:inputCheckbox label="Agra"/>
    <apex:inputcheckbox label="Delhi"/>
 </apex:pageBlockSection>
</apex:outputPanel>
<apex:outputPanel id="USBlock">
 <apex:pageBlockSection title="Select Places Visited" rendered="{!Contact.Country__c == 'America'}" id="USPageBlock">
  <apex:inputCheckbox label="Newyork"/>
  <apex:inputCheckbox label="Washington"/>
 </apex:pageBlockSection> 
</apex:outputPanel>
<apex:outputPanel id="ChinaBlock">
 <apex:pageBlockSection title="Select Places Visited" rendered="{!Contact.Country__c == 'China'}" id="ChinaPageBlock">
 <apex:inputCheckbox label="Bejing"/>
 <apex:inputCheckbox label="Taiwan"/>
 </apex:pageBlockSection>
</apex:outputPanel>
<apex:outputPanel id="AusesBlock">
 <apex:pageBlockSection title="Select Places Visited" rendered="{!Contact.Country__c == 'Australia'}" id="AusesPageBlock">
 <apex:inputCheckbox label="Sydney"/>
 <apex:inputCheckbox label="Canberra"/>
 </apex:pageBlockSection>
</apex:outputPanel>
</apex:pageBlock>
</apex:form>
</apex:page>