• Indusa Admin
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 9
    Questions
  • 2
    Replies
Hi Team,

Please help may i edit contact owner in contact  new interface? Its showing read only mode with the user which is logged in in salesforce.
User-added image
In My Sandbox(Named as "Develop"), while i am tring to open my class - MetadataAPIService(https://cs3.salesforce.com/01pQ0000000IfFBIA0), getting error:
An internal server error has occurred
An error has occurred while processing your request. The salesforce.com support team has been notified of the problem. If you believe you have additional information that may be of help in reproducing or correcting the error, please contact Salesforce Support. Please indicate the URL of the page you were requesting, any error id shown on this page as well as any other related information. We apologize for the inconvenience. 

Thank you again for your patience and assistance. And thanks for using salesforce.com! 

Error ID: 471682875-202584 (-363137105)

Please help here
Hi All,

We faced certain weird behavior yesterday on our production instance (na45). We have authentication mechanism through Salesforce API from our .Net application. We found that yesterday, the API was not returning any response intermittently. Specifically, the outage was experienced during followint timeslots (EST)

5:55 AM - 6:00 AM, 6:49 AM - 07:00 AM, 7:55 AM - 08:00 AM, 11:50 AM- 12:00 PM, 12:45 PM - 12:55 PM, 01:55 PM - 02:00 PM, 02:45 PM - 02:55 PM

Has anyone else faced the same issue?

Thanks.
Hi, I have a component withing visualforce page:
vf page: 
<apex:page standardController="Order" standardStylesheets="false" applyBodyTag="false" > <head> <apex:slds /> </head> <body class="slds-scope"> <div class="slds-scope"> <c:DynamicObjectViewer rec="{!Order}" > </c:DynamicObjectViewer> </div> </body> </apex:page>

vf component :
<apex:component controller="DynamicObjectHandler" > 
 <div align="center">
                <apex:commandButton action="{!saveAction}" value="Save Data" rerender="autocompart" />                 
            </div>  
</apex:component>      

And controller DynamicObjectHandler for component have a method saveAction:
public PageReference saveAction()
    {   
        try
        { 
            system.debug('123obj**'+obj); 
            return null;
        }
        Catch(Exception e)
        {
            ApexPages.addMessages(e) ;
            return null ;
        }        
    }  

The Method SaveAction is not calling while click on SaveData. 
Any one please suggest any solution.
Hi,

I have a question. I want to know that, while out salesforce maintain Site switching, the INSTANCE will be change or not? Means currently our project Instance is NA45, will it change after site switching?

 
Hi,

We have upto N level parent and child account relationship in salesforce. I need all account of company from one account number.

User-added image
I need such function that when I pass account id of C, then It should return all accounts from A to G.
Hi,

I have a custom Swap button on my standard page. On click of that button, we have opened a visualforce page. User will select values from picklist and click on command button from visualforce page. Now we need to expire record which we are swapping and create new record. We need to close existing window after showing success message and redirect to parent window with new created record. How we can do it?

Following is the code of controller and VF page:

<apex:page standardController="Contract_User__c" extensions="ContractUserController" standardStylesheets="true">
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"/>
<apex:includeScript value="https://code.jquery.com/ui/1.10.4/jquery-ui.js"/>  
    <style>
    .taxonomyselect{width:350px !important;}
</style>
<script language="JavaScript" type="text/javascript">
</script>
    <apex:form >
        <apex:pageBlock id="msgs" title="Contract User Swap">
            <apex:pageMessages />
            <apex:pageBlockButtons location="bottom" >
                <apex:commandButton onclick="return confirm('Are you sure to swap this record?');" action="{!swap}" value="Swap">
                 <apex:param name="contactId" value="{!Contract_User__c.Contact__r.Id}" assignTo="{!contactId}" />
                 <apex:param name="productId" value="{!Contract_User__c.Product__r.Id}" assignTo="{!productId}"/>
                </apex:commandButton>
                <apex:commandButton value="Cancel" onClick="window.close();"></apex:commandButton>
            </apex:pageBlockButtons>
            <apex:pageBlockSection columns="1" showHeader="false">
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="Contact" for="mgr"></apex:outputLabel>
                    <apex:selectList id="mgr" value="{!contactId }" size="1" title="Contact" styleClass="taxonomyselect" >
                        <apex:selectOptions value="{!mgrs}"></apex:selectOptions>
                    </apex:selectList>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="Product" for="product"></apex:outputLabel>
                    <apex:selectList id="product" value="{!productId }" size="1" title="Product" styleClass="taxonomyselect" >
                        <apex:selectOptions value="{!products}"></apex:selectOptions>
                    </apex:selectList>
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
        </apex:pageBlock>
        <apex:inputHidden value="{!newCUId}" id="CID"/>
    </apex:form>
</apex:page>
             
Controller : 

public class ContractUserController{
    public final Contract_User__c u; 
    
    public String contactId {get;set {contactId = value;}}
    public String productId {get;set {productId = value;}}
    public String newCUId {get;set;}

    public ContractUserController(ApexPages.StandardController stdController) {
        this.u = (Contract_User__c)stdController.getRecord();
    }
    public List<selectOption> getMgrs() {
        List<selectOption> options = new List<selectOption>(); 
        List<Contract_User__c> objContractUser = [Select Id,Name,Contract__r.AccountId,Contact__c,Contact__r.AccountId from Contract_User__c where Id =: Id.valueOf(u.Id)];
        for (Contact con : [SELECT Id, Name FROM Contact where AccountId =: objContractUser[0].Contact__r.AccountId AND Id!=: objContractUser[0].Contact__c order by Name ASC]){
            options.add(new selectOption(con.Id, con.Name)); 
        }
        return options; 
    }
      public List<selectOption> getProducts() {
        List<selectOption> options = new List<selectOption>(); 
        for (Product2 prod : [SELECT Id, Name FROM Product2 where Prod_Family__c=:'Advisory Services' and ProductCode like 'TA3%']){
            options.add(new selectOption(prod.Id, prod.Name)); 
        }
        return options; 
      }
    
    public PageReference swap()
    {
        Savepoint sp = Database.setSavepoint();
        Contract_User__c CU =  [Select Id,Name,Start_Date__c,End_Date__c,Status__c,Contract__c,Contract__r.AccountId,Product__c,
                                    Contact__c,Contact__r.AccountId from Contract_User__c where Id=:Id.valueOf(u.Id) LIMIT 1];                                             
                                                           
            try
            {                                                  
                if(Date.valueOf(CU.Start_Date__c) == Date.valueOf(system.today()))
                {
                        CU.Start_Date__c = system.today().addDays(-1);
                }
                date endDate = Date.valueOf(CU.End_Date__c);
                CU.End_Date__c = system.today().addDays(-1);
                CU.Status__c = 'Expire';
                
                update CU;             // expire existing contract user
                update lstCMToUpdate;  // expire existing contract members
               
                 
                /*  add new contract user */
                Contract_User__c newCU =  new Contract_User__c();
                newCU.Contract__c = CU.Contract__c;
                newCU.Contact__c= Id.valueOf(contactId);
                newCU.Product__c = Id.valueOf(productId);
                newCU.Start_Date__c = system.today();
                newCU.End_Date__c = endDate;
                newCU.Status__c = 'Active';
                insert newCU;
                newCUId = newCU.Id;
       
                pagereference p = apexpages.Currentpage();
                apexpages.Message msg = new Apexpages.Message(ApexPages.Severity.Confirm,'Contract user swapped successfully!');
                apexpages.addmessage(msg);
                return p; 
            }
            catch(Exception ex){ 
            Database.rollback(sp);
            newCUId = '';
            ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.ERROR, ''));
            return null;
           }
            
        }
    }
}


 
Hi,
In my sandbox i am facing issue.
I make new VF page for case object and i have added new button for spell checking.
I have added  js for spell check and its: spch.js (static resource) which is working in standard page
also on button click event calling function:
 
doSpell({ctrl:id ,lang:'en_US',title:'Check Spelling',intLang:'en_US',organizationId:orgid ,userId:userid }, '/servlet/SProxyWrapper', document.location.protocol + '//' + 'spell-sjl.salesforce.com/spellcheck', 'There is nothing to check', 'We are sorry,our spellchecker currently does not support the browser you are using. Please upgrade your browser.', 'The Spell Checker is not available in this language.');

where id = textarea id and organizationId = org id and userid = userid
but getting error and spell check functionality not working

and through this functionality errir id generate every time
like :
899980258-2677 (-262300609)
1014793063-1877 (-262300609)

Can you please give me guidance for this issue.

In advance thanks.
String query = 'SELECT Id, Name, Contract__r.Account.Name AccountName, Contract__r.Account.Industry Industry, Contract__r.Account.Sub_Industry__c SubIndustry, Contract__r.Account.Account_Owner_Alias__c AccountOwner, Contract__r.ContractNumber ContractNumber, Contract__r.Account.Owner.FirstName OwnerFirstName, Contract__r.Account.Owner.LastName OwnerLastName,Contact__r.FirstName ContactFirstName, Contact__r.LastName ContactLastName, Contract__r.Account.CSM__c CSMId, Contract__r.Account.CSM__r.FirstName CSMFirstName, Contract__r.Account.CSM__r.LastName CSMLastName,Product__r.Research_Area__c ResearchArea,Product_Code__c ProductCode,Contract__c ContractId,Contact__c ContactId,Contact__r.Title_Level__c TitleLevel,Status__c,Contract__r.AccountId AccountId,Product_Family__c ProductFamily FROM Contract_User__c  LIMIT 200';
        return Database.getQueryLocator(query);
In My Sandbox(Named as "Develop"), while i am tring to open my class - MetadataAPIService(https://cs3.salesforce.com/01pQ0000000IfFBIA0), getting error:
An internal server error has occurred
An error has occurred while processing your request. The salesforce.com support team has been notified of the problem. If you believe you have additional information that may be of help in reproducing or correcting the error, please contact Salesforce Support. Please indicate the URL of the page you were requesting, any error id shown on this page as well as any other related information. We apologize for the inconvenience. 

Thank you again for your patience and assistance. And thanks for using salesforce.com! 

Error ID: 471682875-202584 (-363137105)

Please help here
Hi,
In my sandbox i am facing issue.
I make new VF page for case object and i have added new button for spell checking.
I have added  js for spell check and its: spch.js (static resource) which is working in standard page
also on button click event calling function:
 
doSpell({ctrl:id ,lang:'en_US',title:'Check Spelling',intLang:'en_US',organizationId:orgid ,userId:userid }, '/servlet/SProxyWrapper', document.location.protocol + '//' + 'spell-sjl.salesforce.com/spellcheck', 'There is nothing to check', 'We are sorry,our spellchecker currently does not support the browser you are using. Please upgrade your browser.', 'The Spell Checker is not available in this language.');

where id = textarea id and organizationId = org id and userid = userid
but getting error and spell check functionality not working

and through this functionality errir id generate every time
like :
899980258-2677 (-262300609)
1014793063-1877 (-262300609)

Can you please give me guidance for this issue.

In advance thanks.