• Immy
  • NEWBIE
  • 0 Points
  • Member since 2014

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

Hello every one ,
                        I am new to salesforce .My question is I am unable to get data from Idea object in public site page while It's ok after login I have added  controller and visulaforce page in the site setting please tell me what other need to  do to overcome this problem


Thanks .....Amit
  • February 04, 2014
  • Like
  • 0

Hello every one ,
                        I am new to salesforce .My question is I am unable to get data from Idea object in public site page while It's ok after login I have added  controller and visulaforce page in the site setting please tell me what other need to  do to overcome this problem


Thanks .....Amit
  • February 04, 2014
  • Like
  • 0
Hi ,

Could anyone help me out in the below function..Actually i need to apply to formula to the field which depends on some other field.
I created a picklist field which contains BOX,Class-A,Class_B,Class-C.
If anyone selected BOX in that picklist field then automatically Ticket fare has to reflect as 100,if they selected Class-A then 75 has to reflect and so on.....

I written a formula....But it is not working out...

IF( Ispickval(Seats_Category__c ," Box"),100
Ispickval( Seats_Category__c ,"Class-A"),75
 Ispickval(Seats_Category__c," Class_B"),50
   Ispickval(Seats_Category__c," Class-C"),25,0
       )
   
HI,

I have a requirement like,

I need to upload a video from system and that video get saved in youtube. After that I need to share it.

Could anyone please help me on this
I have written a piece of code to create several custom objects when a lead converts. It works, but I don't know how to test the code. How do I write the queries to confirm the custom object was created automatically?

Here is the trigger:

trigger createModefromLead on Lead (after update) {

    List<Mode__c> UpdateModes = new List<Mode__c>();
    List<Mode__c> InsertModes = new List<Mode__c>();
    Set<Id> AccountIds = new Set<ID>();
   
    for (Lead l :Trigger.new){
        if(l.IsConverted){
            AccountIds.add(l.ConvertedAccountId);
        }
    }

List<Mode__c> ModeList = [SELECT Id, Account__c, Name, Mode_Type__c, Est_Shipping_Spend__c, Est_Shipping_Volume__c FROM Mode__c WHERE Account__c in :AccountIds];

    for (Lead l :Trigger.new){
        if(l.IsConverted){

   //Parcel Mode
            if(l.HasParcel__c == TRUE){
                Set<Id> ParcelModeCount = new Set<Id>();
                for (Mode__c m: ModeList){
                    if(m.Account__c == l.ConvertedAccountId && m.Mode_Type__c =='Parcel'){
                     m.Est_Shipping_Spend__c = l.Spend_Annual_Parcel__c;
                        m.Est_Shipping_Volume__c = l.Count_Daily_Parcel__c;
                        ParcelModeCount.add(m.Id);
                        UpdateModes.add(m);
                    }
                }
                if(ParcelModeCount.size() == 0){
                    Mode__c Parcel = new Mode__c(
                        Name = 'Parcel',
                        Mode_Type__c = 'Parcel',
                        Account__c = l.ConvertedAccountId,
                        Est_Shipping_Spend__c = l.Spend_Annual_Parcel__c,
                        Est_Shipping_Volume__c = l.Count_Daily_Parcel__c);
                    InsertModes.add(Parcel);
                }
            }
        }
        if(UpdateModes.size()>0){
            Update Updatemodes;
        }
        if(InsertModes.size()>0){
            Insert InsertModes;
        }
}  
}

And Here is the start of the test:
 
@isTest

private class createModefromLead_TestClass{

    public static testmethod void Convert_NewAcc_CreateMode(){

        //Insert Lead
        Lead LD1 = new Lead(
            LastName = 'LD1',
            Email = 'LD1@LCA.com',
            Company = 'LCA',
            Status = 'Closed - Qualified'
        );
        Insert LD1;
       
        //Convert Lead
        Database.LeadConvert lc = new database.LeadConvert();
        lc.setLeadId(LD1.id);
        lc.setConvertedStatus('Closed - Qualified');
       
        //Verify LD1 Convert
        Database.LeadConvertResult lcr = Database.convertLead(lc);
        System.assert(lcr.isSuccess());

        //Verify LD1 Creates Mode object on Account
       
    }
}


 

Hi,

Am unable to refresh any of the resources in the IDE from the server.

When am trying to refresh a page from the web, getting an Exception saying:

 

 

Unable to refresh resource 'MileaeExension.cls':
com.salesforce.ide.api.metadata.types.Metadata$JaxbAccessorF_fullName cannot be cast to com.sun.xml.bind.v2.runtime.reflect.Accessor

 

Unable to refresh resource 'MileaeExension.cls':


com.salesforce.ide.api.metadata.types.Metadata$JaxbAccessorF_fullName cannot be cast to com.sun.xml.bind.v2.runtime.reflect.Accessor

 

Please assist to rectify the issue. 

 

Thanks in advance,

VNath

Hi we have users with profiles cloned from Partner Portal.All of them login though the Sites.Now I have a need of redirecting these users to different pages after successful login on the basis of their profiles.

 

I have performed it like this:->

 

In the SiteLoginController I have done something like this:->

 public PageReference login() {

Id profileId = UserInfo.getProfileId();

 if(profileId == x)

 startURL = '/asd';

else if(profileId == y)

 startURL ='/asdwer';

 

return Site.login(username, password, startUrl) ;

 }

 

Now the problem is a usability issue.When a first time user is made ,he or she would be changing his/her password when he logs into the first time.This changing password page or module is bypassed by my code.

 

Is there a method of achieving this?

 

Thanks,

 

Hi All,

 

 Can anyone please help me out about this error.

 I am enabling the NewUser feature in my site. And while registering I am getting this error.I am also recieving

       One Email by saying that  "accountId parameter value is not valid "


 

 

 

 

Message Edited by Brijesh_85 on 02-26-2009 03:58 AM