• sai tarun
  • NEWBIE
  • 85 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 15
    Questions
  • 15
    Replies
Hi All,
I had build Process Builder on User object for,
Whenever Opportunity Owner is Deactivated, that owner's manager will be the new owner of that opportunity.
for this, i had build PB on user object, and if User is deactivated, iam trying to update the Opportunity owner.
But it is throwing MIXED DML EXCEPTION.
Please Help me ,
Thankyou
Hi All,
I had build Process Builder on User object for,
Whenever Opportunity Owner is Deactivated, that owner's manager will be the new owner of that opportunity.
for this, i had build PB on user object, and if User is deactivated, iam trying to update the Opportunity owner.
But it is throwing MIXED DML EXCEPTION.

Please help me on this.

Thanks
Hi all,

How to retrieve all  reports using ANT


Thanks in advance
How to pass parameters from one vf page to another vf page without using Apex.
Interviewer asked me how to achive this.......
Thanks in Advance
in a vf page u have 2 buttons 
   if click button 1 then display pageblock1 only,and button1 will disable
   if click button2 then disply pageblock2 only,and button2 will disable.....
if a user is deleted or inactive then how to assign his records to that users manager???????????
I want to diaplay my vf page like
​Account name1 and its child contacts and opportunities,
Account name2 and its child contacts and opportunitis....
like below.....

Account name1:
Contacts:
        1. xxxxxxxxxxx
        2.xxxxxxxxxxxx
Opportunities:
        1.xxxxxxxxxxxx
        2.xxxxxxxxxxxx

Account name2:
Contacts:
        1. xxxxxxxxxxx
        2.xxxxxxxxxxxx
        3.xxxxxxxxxxxx
Opportunities:
        1.xxxxxxxxxxxx
​        2.xxxxxxxxxxxx
.
.
.
..
adn so on......
How to achive this........
please some one help me..
Thanks in Advance...........
If we have list of integer type and there is 20 items and
want to display list in table on page and I want to display
5 data then 5 and then 4 so on, how you will display?

PLease help

Thank you in advance...........

Using Trigger
in an account ,assume you are having 5 contacts connected and you have Account Annual revenue assume10,000 rs amount.
Scenario is
distribute the annual revenue to child records equally(10,000/5),
when a child record is added then then, modify all child record amount (10000/6) who are conected with assosiated account 
when a child record is deleted then also chages will happed to contact fields(10000/4)....
please help me ..........
thanks in advance

thanks in advance.......
What should mention in package.xml file for the retrieve and deployment of profile and permission set using ANT so that all object permission ,fields permission and others permission will remain same after the deployment. Is it possible.If possible could you please tell what should be in pakage.xml file.Please add in below xml file if any thing is required .Could you please tell me is this best way to deploy or better to create profile rather than deploy....

Package.xml:

<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<!-- **************************  
    <types>
     <members>*</members>
     <name>CustomObject</name>
    </types> 
    <types>
        <members>*</members>
        <name>Layout</name>
    </types>
    <types>
        <members>*</members>
        <name>CustomApplication</name>
    </types>
    <types>
        <members>*</members>
        <name>CustomTab</name>
    </types>
    <types>
        <members>*</members>
        <name>ApexClass</name>
    </types>
    <types>
        <members>*</members>
        <name>ApexPage</name>
    </types> 
    <types>
        <members>*</members>
        <name>ApexClass</name>
    </types>
************************** -->  
    <types>
     <members>PermissionSetName</members>
     <name>PermissionSet</name>
    </types>     
    <types>
     <members>ProfileName</members>
     <name>Profile</name>
    </types>
    <version>39.0</version>
</Package> 
how do we reduce size of the view state when we got view state error??????
please tell me in detail , with example if possible......
Thanks in advance........
One of the Interviewer askeed me to why we go with "custom duplicate management instead of inbuilt duplicate management"?
that means we already have duplicate managemnet system, then why we go with trigger or apex like code for checking duplicate records......

please tell me the difference between them ......

Thanks in advance............
<apex:page standardController="sale__c" recordSetVar="sales" sidebar="false">
     <apex:form >
        <apex:pageBlock >
           <apex:pageMessages />
           
            <apex:pageBlockButtons >
               <apex:commandButton value="Save" action="{!save}"/>
               <apex:commandButton value="Return" action="{!cancel}"/>
            </apex:pageBlockButtons>
            
            <apex:pageBlockTable value="{!sales}" var="s" id="table" rows="10">
                <apex:column headerValue="Account Name">
                  <apex:outputField value="{!s.Name}"/>
                   </apex:column>
                  <apex:column headerValue="External Id">
                 <apex:inputField value="{!s.External_Id__c}"/>
                   </apex:column>
                <apex:column headerValue="DOJ">
                  <apex:inputField value="{!s.DOJ__c}"/>
                </apex:column>
                <apex:column headerValue="Select">
                  <apex:inputField value="{!s.Select_Intrested_Field__c}"/>
                </apex:column>
                <apex:inlineEditSupport />
            </apex:pageBlockTable>
           
           <apex:commandLink action="{!Previous}" value="Previous Page" rendered="{!HasPrevious}"/>&nbsp;
           <apex:commandLink action="{!Next}" value="Next Page" rendered="{!HasNext}"/>&nbsp;
           <apex:commandLink action="{!Last}" value="Last Page" rendered="{!HasNext}"/>&nbsp;
           <apex:commandLink action="{!First}" value="First Page" rendered="{!HasPrevious}"/>
           
         </apex:pageBlock>
      </apex:form>
 </apex:page>

pagination links are not visible in apex page....
what is the mistake here....
Thanks in Advance
 
Hi All,
One of the Interviewer asked to me that
'I want to develop a visual force page,it will show the list of accounts,and i should be able to edit the account name and save it .For all accounts(Bulk Updating) or One Account, and i dont want to write any code..........You can you any method.......How can i achive that...............'?
How can can i achive this .............
Thanks in advance.............
 
I have 3 functionality  in execute method as 1,2,3 . But i need to sort order as 3,2,1 while executing . How can you achieve it ?

ThankYou in Advance.........
One of the Interviewer askeed me to why we go with "custom duplicate management instead of inbuilt duplicate management"?
that means we already have duplicate managemnet system, then why we go with trigger or apex like code for checking duplicate records......

please tell me the difference between them ......

Thanks in advance............
<apex:page standardController="sale__c" recordSetVar="sales" sidebar="false">
     <apex:form >
        <apex:pageBlock >
           <apex:pageMessages />
           
            <apex:pageBlockButtons >
               <apex:commandButton value="Save" action="{!save}"/>
               <apex:commandButton value="Return" action="{!cancel}"/>
            </apex:pageBlockButtons>
            
            <apex:pageBlockTable value="{!sales}" var="s" id="table" rows="10">
                <apex:column headerValue="Account Name">
                  <apex:outputField value="{!s.Name}"/>
                   </apex:column>
                  <apex:column headerValue="External Id">
                 <apex:inputField value="{!s.External_Id__c}"/>
                   </apex:column>
                <apex:column headerValue="DOJ">
                  <apex:inputField value="{!s.DOJ__c}"/>
                </apex:column>
                <apex:column headerValue="Select">
                  <apex:inputField value="{!s.Select_Intrested_Field__c}"/>
                </apex:column>
                <apex:inlineEditSupport />
            </apex:pageBlockTable>
           
           <apex:commandLink action="{!Previous}" value="Previous Page" rendered="{!HasPrevious}"/>&nbsp;
           <apex:commandLink action="{!Next}" value="Next Page" rendered="{!HasNext}"/>&nbsp;
           <apex:commandLink action="{!Last}" value="Last Page" rendered="{!HasNext}"/>&nbsp;
           <apex:commandLink action="{!First}" value="First Page" rendered="{!HasPrevious}"/>
           
         </apex:pageBlock>
      </apex:form>
 </apex:page>

pagination links are not visible in apex page....
what is the mistake here....
Thanks in Advance
 
How to pass parameters from one vf page to another vf page without using Apex.
Interviewer asked me how to achive this.......
Thanks in Advance
in a vf page u have 2 buttons 
   if click button 1 then display pageblock1 only,and button1 will disable
   if click button2 then disply pageblock2 only,and button2 will disable.....

Using Trigger
in an account ,assume you are having 5 contacts connected and you have Account Annual revenue assume10,000 rs amount.
Scenario is
distribute the annual revenue to child records equally(10,000/5),
when a child record is added then then, modify all child record amount (10000/6) who are conected with assosiated account 
when a child record is deleted then also chages will happed to contact fields(10000/4)....
please help me ..........
thanks in advance

thanks in advance.......
One of the Interviewer askeed me to why we go with "custom duplicate management instead of inbuilt duplicate management"?
that means we already have duplicate managemnet system, then why we go with trigger or apex like code for checking duplicate records......

please tell me the difference between them ......

Thanks in advance............
hi 

I have 2 fields on contact which is inc__c and dec__c
so when  i set the value on inc__c = 20, Dec__c = 0 should set to null
if i change the value on Dec__c = 0 to Dec__c = 1 
the inc__c  should decrement to inc__c = 19.

if add one more Dec__c =2
i.e. inc__c = 18

how can i acheive this,if its trigger please give me the sample code,i really appreciate your responses

Thanks
 
<apex:page standardController="sale__c" recordSetVar="sales" sidebar="false">
     <apex:form >
        <apex:pageBlock >
           <apex:pageMessages />
           
            <apex:pageBlockButtons >
               <apex:commandButton value="Save" action="{!save}"/>
               <apex:commandButton value="Return" action="{!cancel}"/>
            </apex:pageBlockButtons>
            
            <apex:pageBlockTable value="{!sales}" var="s" id="table" rows="10">
                <apex:column headerValue="Account Name">
                  <apex:outputField value="{!s.Name}"/>
                   </apex:column>
                  <apex:column headerValue="External Id">
                 <apex:inputField value="{!s.External_Id__c}"/>
                   </apex:column>
                <apex:column headerValue="DOJ">
                  <apex:inputField value="{!s.DOJ__c}"/>
                </apex:column>
                <apex:column headerValue="Select">
                  <apex:inputField value="{!s.Select_Intrested_Field__c}"/>
                </apex:column>
                <apex:inlineEditSupport />
            </apex:pageBlockTable>
           
           <apex:commandLink action="{!Previous}" value="Previous Page" rendered="{!HasPrevious}"/>&nbsp;
           <apex:commandLink action="{!Next}" value="Next Page" rendered="{!HasNext}"/>&nbsp;
           <apex:commandLink action="{!Last}" value="Last Page" rendered="{!HasNext}"/>&nbsp;
           <apex:commandLink action="{!First}" value="First Page" rendered="{!HasPrevious}"/>
           
         </apex:pageBlock>
      </apex:form>
 </apex:page>

pagination links are not visible in apex page....
what is the mistake here....
Thanks in Advance
 
Hi All,
One of the Interviewer asked to me that
'I want to develop a visual force page,it will show the list of accounts,and i should be able to edit the account name and save it .For all accounts(Bulk Updating) or One Account, and i dont want to write any code..........You can you any method.......How can i achive that...............'?
How can can i achive this .............
Thanks in advance.............
 
I have 3 functionality  in execute method as 1,2,3 . But i need to sort order as 3,2,1 while executing . How can you achieve it ?

ThankYou in Advance.........
Hello Techie's

How to know the number of records processed in a batch operation while working with five million records. Any Help would be appreciated.