-
ChatterFeed
-
0Best Answers
-
2Likes Received
-
0Likes Given
-
15Questions
-
15Replies
process builder on user object causing MIXED DML EXCEPTION
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
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
- sai tarun
- June 18, 2019
- Like
- 0
- Continue reading or reply
Process builder on User object, getting mixed dml exception
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
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
- sai tarun
- June 18, 2019
- Like
- 0
- Continue reading or reply
How to retrieve all reports using ANT
Hi all,
How to retrieve all reports using ANT
Thanks in advance
How to retrieve all reports using ANT
Thanks in advance
- sai tarun
- July 31, 2018
- Like
- 0
- Continue reading or reply
passing parameters from one vf page to another vf page without using Apex. how to achive this
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
Interviewer asked me how to achive this.......
Thanks in Advance
- sai tarun
- March 07, 2018
- Like
- 0
- Continue reading or reply
in a vf page u have 2 buttons if click button 1 then display pb1 and button1 will disable if click button2 then disply pb2 and button2 will disable
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 click button 1 then display pageblock1 only,and button1 will disable
if click button2 then disply pageblock2 only,and button2 will disable.....
- sai tarun
- December 10, 2017
- Like
- 0
- Continue reading or reply
if a user is deleted or disabled then how to assign his records to that users manager
if a user is deleted or inactive then how to assign his records to that users manager???????????
- sai tarun
- December 09, 2017
- Like
- 0
- Continue reading or reply
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.....
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...........
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...........
- sai tarun
- December 08, 2017
- Like
- 0
- Continue reading or reply
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?
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...........
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...........
- sai tarun
- December 08, 2017
- Like
- 0
- Continue reading or reply
Share Annual Revenue Amount to Child records(Contacts) Equally
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.......
- sai tarun
- December 07, 2017
- Like
- 0
- Continue reading or reply
How to deploy Profiles from one org to another org Using ANT Tool?
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>
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>
- sai tarun
- September 19, 2017
- Like
- 0
- Continue reading or reply
how do we reduce size of the view state when view state error occurs.......????
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........
please tell me in detail , with example if possible......
Thanks in advance........
- sai tarun
- September 07, 2017
- Like
- 0
- Continue reading or reply
One of the Interviewer askeed me to why we go with "custom duplicate management instead of inbuilt duplicate management"?
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............
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............
- sai tarun
- September 07, 2017
- Like
- 1
- Continue reading or reply
I have a problem with Pagination, it's working properly on standard object but not custom object.... why?????
<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}"/>
<apex:commandLink action="{!Next}" value="Next Page" rendered="{!HasNext}"/>
<apex:commandLink action="{!Last}" value="Last Page" rendered="{!HasNext}"/>
<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
<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}"/>
<apex:commandLink action="{!Next}" value="Next Page" rendered="{!HasNext}"/>
<apex:commandLink action="{!Last}" value="Last Page" rendered="{!HasNext}"/>
<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
- sai tarun
- August 18, 2017
- Like
- 1
- Continue reading or reply
One of the Interviewer asked to me
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.............
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.............
- sai tarun
- August 09, 2017
- Like
- 0
- Continue reading or reply
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.........
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.........
ThankYou in Advance.........
- sai tarun
- August 09, 2017
- Like
- 0
- Continue reading or reply
One of the Interviewer askeed me to why we go with "custom duplicate management instead of inbuilt duplicate management"?
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............
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............
- sai tarun
- September 07, 2017
- Like
- 1
- Continue reading or reply
I have a problem with Pagination, it's working properly on standard object but not custom object.... why?????
<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}"/>
<apex:commandLink action="{!Next}" value="Next Page" rendered="{!HasNext}"/>
<apex:commandLink action="{!Last}" value="Last Page" rendered="{!HasNext}"/>
<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
<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}"/>
<apex:commandLink action="{!Next}" value="Next Page" rendered="{!HasNext}"/>
<apex:commandLink action="{!Last}" value="Last Page" rendered="{!HasNext}"/>
<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
- sai tarun
- August 18, 2017
- Like
- 1
- Continue reading or reply
passing parameters from one vf page to another vf page without using Apex. how to achive this
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
Interviewer asked me how to achive this.......
Thanks in Advance
- sai tarun
- March 07, 2018
- Like
- 0
- Continue reading or reply
in a vf page u have 2 buttons if click button 1 then display pb1 and button1 will disable if click button2 then disply pb2 and button2 will disable
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 click button 1 then display pageblock1 only,and button1 will disable
if click button2 then disply pageblock2 only,and button2 will disable.....
- sai tarun
- December 10, 2017
- Like
- 0
- Continue reading or reply
Share Annual Revenue Amount to Child records(Contacts) Equally
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.......
- sai tarun
- December 07, 2017
- Like
- 0
- Continue reading or reply
One of the Interviewer askeed me to why we go with "custom duplicate management instead of inbuilt duplicate management"?
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............
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............
- sai tarun
- September 07, 2017
- Like
- 1
- Continue reading or reply
trigger on contact
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
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
- sonam guptha
- September 06, 2017
- Like
- 0
- Continue reading or reply
I have a problem with Pagination, it's working properly on standard object but not custom object.... why?????
<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}"/>
<apex:commandLink action="{!Next}" value="Next Page" rendered="{!HasNext}"/>
<apex:commandLink action="{!Last}" value="Last Page" rendered="{!HasNext}"/>
<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
<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}"/>
<apex:commandLink action="{!Next}" value="Next Page" rendered="{!HasNext}"/>
<apex:commandLink action="{!Last}" value="Last Page" rendered="{!HasNext}"/>
<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
- sai tarun
- August 18, 2017
- Like
- 1
- Continue reading or reply
One of the Interviewer asked to me
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.............
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.............
- sai tarun
- August 09, 2017
- Like
- 0
- Continue reading or reply
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.........
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.........
ThankYou in Advance.........
- sai tarun
- August 09, 2017
- Like
- 0
- Continue reading or reply
Batch Apex to count processed records
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.
How to know the number of records processed in a batch operation while working with five million records. Any Help would be appreciated.
- steve pattinson
- July 10, 2016
- Like
- 0
- Continue reading or reply