• Board salesforce
  • NEWBIE
  • 85 Points
  • Member since 2015

  • Chatter
    Feed
  • 1
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 40
    Questions
  • 62
    Replies
Hello, for several days I can no longer connect to my account trailhead , my dev environment runs but not authentication on trailhead . Is this a general problem ? Or is my account that no longer works ?
Hi All,

Please any one help me out 
In Account Industry picklist contains 10 picklist values , i have remove 5 in layout level 
now i want to display this 5 layout level assigned picklist values in flow 

Thanks ,
Ram.
Hi all,
can any one help on this .
 
public pageReference searchProducts(){
        Map<String,Object> fieldValuesMap =new Map<String,Object> ();
        
        String query = 'select id'; 
        System.debug('query first ------>'+query );
        string WhereClause;
        for(Schema.FieldSetMember f : SObjectType.Product2.FieldSets.SearchProducts.getFields()) 
        {
            query += ', ' + f.getFieldPath();  
            WhereClause=''+schema.product2.getSobjectType()+' LIKE \'%'+ f.getFieldPath() + '%\'  ';
            System.debug('WhereClause ------>'+WhereClause );
        }
        query += ' FROM Product2 WHERE ' +WhereClause;
        
        System.debug('query ------>'+query );
        Products = Database.query(query);
        System.debug('Products ------>'+Products );
         
        for(Schema.FieldSetMember f : SObjectType.Product2.FieldSets.ProductFields.getFields()) 
        {
            
            WhereClause='id=:Product2.id ,Product2.'+f.getfieldPath()+' LIKE \'%'+ f.getFieldPath() + '%\'  ';
            System.debug('WhereClause ------>'+WhereClause );
        }
        WhereClause += ' FROM Product2 WHERE ' +WhereClause; 
        
        System.debug('query ------>'+query );
        Products = Database.query(query);
        System.debug('Products $$$$$ ------>'+Products );
        query=Query +'From Product2'+WhereClause;
        System.debug('query $$$$$ ------>'+query );
        return Null;
    }

in this method am not able to get the product values in search functionality
 
Hi All,

I have a requirement to generate reports based on count based on date,picklistfields ,No of days(formula field)

I want report as below format please help me on this
                                           Last 30 days     %change vs Last 30days 
No of date fields records          days                   
No of Picklistfield records         days                  
Average No of Days                 average
Thanks,
Ram
 
Hi All,

I have a picklist field open ,In Progress,Closed . Now i want the days to calculate in Open and In progress values for more than 3 days from created and modfied date  ?

can any one help me out

Thanks ,
Ram
Hi all,
As we do serch with getter setter to filiter the records on name etc.
I am trying using fieldsets , instead of changing the code always  i try to add field in the fieldset so i can have search for added field dynamically.here the problem is how to compare name using fieldsets in the query?
can any one help me
Thanks ,
Ram.
Hi All,

Please any one brief about technical differences between ServiceMax and FieldService Lightning?

Thanks,
Ram
Hi All ,

Help on fieldsets using controller with Search Criteria and display records using fieldsets?

Thanks ,
Ram.
Hi All,

An account can have 10 Opportunities ,when i open a opportunity and change the stage to  Closed won then other 9 Opportunities has to be  Updated closed Lost automatically.

Please help on this.
Thanks ,
 
Hi Techie's ,

I am in the version of 36 still it is shwoing the error message as 

Method does not exist or incorrect signature : Test.getStandardPricebookId()

Can any help out.
Hi Techie's,


Can any one help out with a trigger that restricting dupicate opportunitylineitems 

Thanks,
Ram.
Hi Techie's,

Here is one requirement ,i need a custom delete button on the account related contacts ,when i click on the delete button whole the records should be deleted without selection of contact records.Please help me out 

Thanks ,
Ram
 

Hi Pcon ,

Can i have the referal code to get the attachments from JIRA to saleforce ,eg: when a attachment is created in JIRA then the attachment should be created in salesforce under case object.
can you Please help out.
Thanks ,
Ram
Hi All,

Please help me out for JAVASCRIPT code which should be appended in Visualforce page that automatically refreshes for 5 secs.
after a record is created then it has to refresh automatically after 5 secs .

Thanks ,
Ram
Hi all,
am getting below error in test Class can any one help me out.

System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, CaseCommentSync: execution of AfterInsert

caused by: System.NullPointerException: Attempt to de-reference a null object

Class.JIRA: line 8, column 1
Trigger.CaseCommentSync: line 7, column 1: []


Thanks ,
Ram

Hi all,

can any one please help out,
how make a field required with error message on clicking ob submit button at field level using javascript  in Vf not in controller? 
Thanks ,
Ram

Hi all,


i am trying to integrate salesforce and microsoft nav using a wsdl file ,wsdl file parse into apex class but it doesnot contains any authentication methods in it,it have the paremetes clientcert_c,client_password,cert_key?
how would i authenticate now and how if we do with CA signed certificate ?steps need to follow?

Thanks ,
Ram
Hi Techie's,
Please help me out
here the scenario when i insert a account record with name 'Test A' and the folder sholud be created with the 'Test A' in Box.com
As Box Supports OAUTH Authentication it is having with conflict with writing trigger ..can any one help on this 

Thanks ,
Ram
Hi All,
please help me out 
i want to render the output panels based on the  selected picklist values using action function ? 

Thanks ,
Ram
Hi all,

can u please help em out in referring link to integrate quickbooks to salesfore and salesforce to quickbooks using Dbysync?
HI All,

Please help me out to configure salesforce and quickbooks adapter.
Here am trying to integrate quickbooks online to salesforce with Dbsync 
For trial i have created a account in quickbooks i can able to sync the data
i found a help document noting that below
http://help.mydbsync.com/docs/display/dbsync/Salesforce+QuickBooks+Online+Integration
Go to www.mydbsync.com & register for Free Trial.?
i cant able to see the console of quickbooks although i login into it
Ensure that Source & Target Adapters are Salesforce & QuickBooks Online respectively.?
what are the above adapters need to install?
can help me out 
 
Hi All,


can any one suggest on this
How to retrieve all the owners and i have to display it on the VF page?
 
Hi All,

Please any one help me out 
In Account Industry picklist contains 10 picklist values , i have remove 5 in layout level 
now i want to display this 5 layout level assigned picklist values in flow 

Thanks ,
Ram.
Hi Friends,

As I am new to salesforce, I have plenty of questions while I am practicing.

I have a number field called "Override" under Custom Object "MyUser". I have created a record and entered value into it but it is showing Null when I am trying to display it on VF page.

Can some one help me Why my field value is showing null ???

Thanks in advance.
Hi All,

Please any one brief about technical differences between ServiceMax and FieldService Lightning?

Thanks,
Ram
Hi All,

An account can have 10 Opportunities ,when i open a opportunity and change the stage to  Closed won then other 9 Opportunities has to be  Updated closed Lost automatically.

Please help on this.
Thanks ,
 
Can anyone help me with the test class for below controller. I am trying to get the values of the vf page on save of a new record. standard controller will be null at that point but i need to access the values so I can save it.

public CA_SamsAccountController(ApexPages.StandardController std) {
      samsid = ApexPages.currentPage().getParameters().get('id');
       accid = ApexPages.currentPage().getParameters().get('AccountId');
       if(samsid!=null)
        cont =  (CA_SamsAccount__c)std.getRecord();  --- this line gives me error whenever I try to run the test class if i remove the above if condition
        }
        
        public PageReference save() { 
            string acctype = bc.getSamsAccountTypes();
            cont.CA_Sams_Account_Name__c = str;
            cont.CA_Account__c = acc.id;
            cont.CA_Account_name__c = accname;
            cont.CA_ApiLastName__c = '.api';
            cont.CA_Country__c = selectedCountry;
            cont.CA_contract__c = contractid;
            cont.CA_Parent_ID__c = selectedParent;
            cont.CA_MisPassword__c = temp1;
            cont.CA_ApiPassword__c = temp;
            cont.CA_AccountTypeId__c = acctype;
            con = [select lastname,firstname,phone,email from contact where id=: cont.CA_Contact__c limit 1];   --- I always have cont as null and hence not able to fetch contact
            cont.CA_First_Name__c = con.firstname;
            cont.CA_Last_Name__c = con.lastname;
            cont.CA_Telephone__c = con.phone;
            cont.CA_Email__c = con.email;
            insert cont;
        }
        
         public string getApiorgname()
    {
       string apiorgname = '';
       string api = cont.CA_Sams_Account_Name__c;  --- same issues goes here as well
       list<CA_SamsAccount__c> clist = [select CA_ApiFirstName__c from CA_SamsAccount__c where CA_ApiFirstName__c=: api];
       if(clist.size()>0)
           for(CA_SamsAccount__c c : clist)
                uniquename.add(c.CA_ApiFirstName__c);
       apiorgname = checkpattern(api);
       apiorgname = apiorgname + '.api';
       system.debug('api==='+ apiorgname);
       return apiorgname;
    }

Any quick work around is highly appreciated.
Thanks, Priya
Trigger:
trigger QuantityMOQValidate on OpportunityLineItem (after insert, after update) {
if(checkRecursive.runOnce()){
    Set<Id> pbeIds = new Set<Id>();
    for (OpportunityLineItem oli : Trigger.new){
        pbeIds.add(oli.pricebookentryid);
        system.debug('adding to pbeIds ------>' + oli.pricebookentry.id);
    }
    Map<Id, double> entries = new Map<Id, Decimal>();
    for(PricebookEntry pbe : [select id, MOQ__c from PricebookEntry where id IN : pbeIds]){
        entries.put(pbe.id, pbe.MOQ__c);
        system.debug('putting in a map id------>' + pbe.id);
        system.debug('putting in a map value------>' + pbe.MOQ__c);
    }
    list<OpportunityLineItem> upOLI = new list<OpportunityLineItem>();
    for(OpportunityLineItem oli: Trigger.new){
        if((oli.Quantity < entries.get(oli.pricebookEntryId)) && entries.get(oli.pricebookEntryId) != Null ){
            system.debug('Quantity less than MOQ');            
            oli.addError('Quantity less than MOQ ['+ Integer.valueof(entries.get(oli.pricebookEntryId))+']');
        }        
        system.debug('>>>>>>>>Quantity----->' + oli.Quantity+'>>MOQ val----->'+ entries.get(oli.pricebookEntryId));        
    }   
}
}

Testclass:

@istest
public class TestQuantityMOQValidate {
 static testMethod void myUnitTest() {       

//Data Prep
//Create Account, Opportunity, Product, etc.
        Account acct1 = new Account(name='test Account One1');
        insert acct1;
//Create Opportunity on Account
        Opportunity Oppty1 = new Opportunity(name='test Oppty One1');
        Oppty1.StageName = 'Selected';
        Oppty1.CloseDate = Date.today() + 30;
        insert Oppty1;         

// Create Products 
         Product2 testprod1 = new Product2 (name='test product one1');
         testprod1.productcode = 'test pd code1one';
        
                insert testprod1;
         Product2 testprod2 = new Product2 (name='test product two2');
         testprod2.productcode = 'test pd code2two';
         
         
         insert testprod2;
// Get Pricebook
         Pricebook2 testpb = [select id from Pricebook2 where IsStandard = true];
         testpb.IsActive=true;
         update testpb;   
// Add to pricebook
        PriceBookEntry pbe1 = new PricebookEntry();
        pbe1.UnitPrice = 100;
        pbe1.Product2Id = testprod1.Id;
        pbe1.Pricebook2Id = testpb.id;
        pbe1.IsActive = true;
        pbe1.useStandardPrice = false;
        insert pbe1;
        PriceBookEntry pbe2 = new PricebookEntry();
        pbe2.UnitPrice = 200;
        pbe2.Product2Id = testprod2.Id; 
        pbe2.Pricebook2Id = testpb.id;
        pbe2.IsActive = true;
        pbe2.useStandardPrice = false;
        insert pbe2;

Test.startTest();

Oppty1.StageName='Selected';
update Oppty1;
System.assertNotEquals('Prospecting', Oppty1.StageName); 

Test.stopTest();
}
}
I have a Email Template Name ,Subject name but i am not able to find that Email Alert to stop . I have checket with those email template name  in Email Alerts also but i could not find it.

Please help me

Trying to log in to my Developer Edition using: adam@trailheadexperience.demo + my password. Every time I get an error message letting me know my credentials are in correct.

Ive tried multiple variations: adam@/agitto@/gitto@ - as well as my password. Nothing works. 

Is there a way to reset my log in credentials? Or is there somewhere I am able to retrieve what my log in should be? 

Any help is seriously appreciated!!! 

Hello, for several days I can no longer connect to my account trailhead , my dev environment runs but not authentication on trailhead . Is this a general problem ? Or is my account that no longer works ?
Hi All

I am the system admin .i have 5 user including me.but problem is when i am creating record other user not able to see.now the all  are public .so why it is not happening?
Hi Techie's ,

I am in the version of 36 still it is shwoing the error message as 

Method does not exist or incorrect signature : Test.getStandardPricebookId()

Can any help out.
Hi Techie's,


Can any one help out with a trigger that restricting dupicate opportunitylineitems 

Thanks,
Ram.