• rv90
  • NEWBIE
  • 70 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 14
    Questions
  • 15
    Replies
Hi friends, 
 
i need to deactivate docu sign user automatically when a user in salesforce is deactivated. 
 
Please help me to solve this. 
 
Thanks
- RT
  • September 14, 2017
  • Like
  • 0
I have related list under account object for suppose an account record has 5 related recored on a object, can  i get thosed related list in account field?


User-added image
As shown in the above image, this is a related list on Account object, so i need a field on account object and show all the related list names in the field 

for example : 

Account_field1__c =  Contarct name 1 , contract name 2 , contract name 3 ........ contract name 6 .
Account_field1__c =  619754.1STD ,619744STD,619733STD,619730STD,617208.6STD.



is this possible ?
  • August 15, 2017
  • Like
  • 0



While initial load of my page, the date picker is auto populating, i want to restrict it. Below is my code and screenshot for refrence . Please help me out





<apex:pageBlockSectionItem >
                            <apex:outputLabel value="From Date"></apex:outputLabel>
                            <apex:inputText value="{!fromDate}" id="fromDate" styleClass="fromdatepickerctl"/>
                        </apex:pageBlockSectionItem>

                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="To Date"></apex:outputLabel>
                            <apex:inputText value="{!toDate}" id="toDate" styleClass="todatepickerctl"/>
                        </apex:pageBlockSectionItem>

<script type="text/javascript">
        var j$ = jQuery.noConflict();
        
        j$(document).ready(function(){
            var d = new Date();
            var da = new Date();
            da.setDate(da.getDate() + 28);
            var dayCount = da.getDay();
            if( dayCount != 0 ){
                var remainingCount = 7 - dayCount;
                da.setDate(da.getDate() + remainingCount);
            }
            var defaultDate = new Date(da);
    
            j$('.fromdatepickerctl').datepicker({
                dateFormat: 'dd-mm-yy',        
                minDate: 1,
                daysOfWeekDisabled: [1,2,3,4,5,6],
                startDate: getTodayDate()
                
            });
            j$('.todatepickerctl').datepicker({
                daysOfWeekDisabled: [1,2,3,4,5,6],
                autoclose: true,
                startDate: getTodayDate()
                
            });
            j$('.fromdatepickerctl').datepicker('update', defaultDate);            
            j$('.todatepickerctl').datepicker('update', defaultDate);
    
         
        function getTodayDate() {
            var today = new Date();
            var dd = today.getDate();
            var mm = today.getMonth() + 1; //January is 0!
            var yyyy = today.getFullYear();

            if (dd < 10) {
                dd = '0' + dd
            }

            if (mm < 10) {
                mm = '0' + mm
            }

            today = mm + '/' + dd + '/' + yyyy;
            //document.write(today);
            return today;
        }
        
        
            
    
    </script>


User-added image

 
  • August 03, 2017
  • Like
  • 0
Hi there, 

I have financial Account as a custom object and account as a standard object, 

In financial object  i have a  look up relation field (Client_Account__r) with account. 

Now, i am coding in FinancialAccount trigger handler class - I need to fetch "Name" value from Account. 

By using formula field i successfully got the value from account object by using - - Client_Account__r.name 

But when coding in apex trigger class, i am not able to fetch the value- below is my code- 
 
 for (Financial_Account__c fa:triggernew)
 {
string finalstr='';
string totalstr='';
string cName = fa.Client_Account__r.Name;
           
   IF(cName!= Null){
             IF( cName.contains ('NDT/')) {
       	     	totalstr= cName.removeStart('NDT/');
             }else{
                 totalstr = cName;
            }
         }
}
I am getting null in cName variable .
Client_Account__c is a custom field in financial account object and is a lookup with account object.



 
  • July 06, 2017
  • Like
  • 0

I have 4 custom field that needs to be concatinated in a single formule custom field. For example: 

Field1__c  = 'India' 
Field2__c = 'Australia'
Field3__c  = 'America'
Field4__c  = 'London'

Now, in the New Formule field i need the output as: 

C_Field__c = Field1__c+ Field2__c + Field3__c  + Field4__c  ( with '/' seperating all the string) 

ie;.  C_Field__c = 'India/Australia/America/London'

If nothing is enterred in the those 4 fields it should return Field6__c 

  • June 06, 2017
  • Like
  • 0
Below is my email templete where subject has IF conditon .... Where IF last email is_active__c = true  then i need start_date__c value printed and if is_active__c = false i  need 'No data Found' printed.

 
<messaging:emailTemplate subject="{!if(!RelatedTo.is_active__c,'{!relatedTo.start_date__c}','No data found')}"   recipientType="User" relatedToType="Apttus_Proposal__Proposal__c" replyTo="noreply@xyz.com" rendered="true">


When i execute this: is_active__c = true ---- I am getting Custom field  api name {!relatedTo.start_date__c} as text printed  instead of the custom field value ? 

Please help me to solve this...
  • May 08, 2017
  • Like
  • 0
In the below image, there is copy physical address to other address at the right, this link is only visible in edit mode, clicking the link with instantly copy physical address at the left side to other address to the right side. I have researched but couldnt get any clue how and where can we insert this link. Please help me.


Copy link'
  • February 22, 2017
  • Like
  • 0
In the Physical County i will be getting string such as 'Wayne County' or 'Oakland County' so my requirement is to remove the county and just update as 'Wayne'  or 'Oakland' Below code is working fine, but i need to check if physical_county__c contains 'County' string onky from the right side that is if we have last 6 sub string as County then enter the IF condition.. Can any one help me out on this. 

Below is my code, 
IF(fa.Physical_County__c.contains('County')){
fa.Physical_County__c = fa.Physical_County__c.substring(0,fa.Physical_County__c.length()-6);

 
  • February 14, 2017
  • Like
  • 0
Hi guys, 

I am trying to develope a functionality where  a Visual force page should contains a Count down timer of 60 seconds and display a message as .....

Please wait... Processing (Display Timer count down starts from 60 sec).
  • February 09, 2017
  • Like
  • 0
Hi guys, 

I am trying to develope a functionality where  a Visual force page should contains a Count down timer of 60 seconds and display a message as .....

Please wait... Processing (Display Timer count down).
  • February 08, 2017
  • Like
  • 0
Is it possible to hide a section on the standard pagelayout based on the picklist selection, For suppose in the below picture 

If i have selected the region as YES in the picklist then it should show the REGION DETAILS section and if the REGION is selected as NO the the REGION DETAILS SECTION Should be hidden.

Please help.


User-added image
  • February 02, 2017
  • Like
  • 0
for (Task t: triggerNew) {
             If(t.callDisposition.contains('Disconnected')){
           t.type = 'Invalid Contact Information';
        } 
         if(t.callDisposition.contains('Busy')){
            t.type = 'No Answer';
         }
        }
Above is my code where i am trying to developer code where field callDisposition contains 'Disconnected' strings it should update the  type as 'Invalid Contact Information' But what's happening is it is only seeing if the field has exact value (case sensitive) . I want if that field contains  set of any string then IF statement should be true.
Please help me on this.
 
  • January 30, 2017
  • Like
  • 0
below is my trigger, I am trying to update a field  when every a user try to update a state field as 'Michigan' then the Physical COuntry Field should automatically change to 'USA'.  Please tell me where am i doing wrong.
Can i use Update  dml statement for after update trigger. because
Below code is throwing error. 

trigger fUpdate on Financial_Account__c (after update) {
    List<Financial_Account__c> acc = [SELECT Id,name, physical_country__c FROM Financial_Account__c WHERE Id IN: Trigger.newMap.keySet()];
system.debug(''+acc);
    for (Financial_Account__c a : acc) {
If(a.state__c == 'Michigan'){
        a.physical_country__c = 'USA';
}
 
  }
   update acc;
 
   
}

User-added image
 
  • January 30, 2017
  • Like
  • 0
Hi i got a custom WSDL file and when ever i try to request data from salesforce from external application through wsdl it is asking me session id , Is there any way where i can access the salesforce data through wsdl file with out entering session id each and every time or like anything where we can include authentication in the same apex class and then generate the wsdl file where the authentication will take pace internally or something like that.
  • January 05, 2017
  • Like
  • 0



While initial load of my page, the date picker is auto populating, i want to restrict it. Below is my code and screenshot for refrence . Please help me out





<apex:pageBlockSectionItem >
                            <apex:outputLabel value="From Date"></apex:outputLabel>
                            <apex:inputText value="{!fromDate}" id="fromDate" styleClass="fromdatepickerctl"/>
                        </apex:pageBlockSectionItem>

                        <apex:pageBlockSectionItem >
                            <apex:outputLabel value="To Date"></apex:outputLabel>
                            <apex:inputText value="{!toDate}" id="toDate" styleClass="todatepickerctl"/>
                        </apex:pageBlockSectionItem>

<script type="text/javascript">
        var j$ = jQuery.noConflict();
        
        j$(document).ready(function(){
            var d = new Date();
            var da = new Date();
            da.setDate(da.getDate() + 28);
            var dayCount = da.getDay();
            if( dayCount != 0 ){
                var remainingCount = 7 - dayCount;
                da.setDate(da.getDate() + remainingCount);
            }
            var defaultDate = new Date(da);
    
            j$('.fromdatepickerctl').datepicker({
                dateFormat: 'dd-mm-yy',        
                minDate: 1,
                daysOfWeekDisabled: [1,2,3,4,5,6],
                startDate: getTodayDate()
                
            });
            j$('.todatepickerctl').datepicker({
                daysOfWeekDisabled: [1,2,3,4,5,6],
                autoclose: true,
                startDate: getTodayDate()
                
            });
            j$('.fromdatepickerctl').datepicker('update', defaultDate);            
            j$('.todatepickerctl').datepicker('update', defaultDate);
    
         
        function getTodayDate() {
            var today = new Date();
            var dd = today.getDate();
            var mm = today.getMonth() + 1; //January is 0!
            var yyyy = today.getFullYear();

            if (dd < 10) {
                dd = '0' + dd
            }

            if (mm < 10) {
                mm = '0' + mm
            }

            today = mm + '/' + dd + '/' + yyyy;
            //document.write(today);
            return today;
        }
        
        
            
    
    </script>


User-added image

 
  • August 03, 2017
  • Like
  • 0
Hi there, 

I have financial Account as a custom object and account as a standard object, 

In financial object  i have a  look up relation field (Client_Account__r) with account. 

Now, i am coding in FinancialAccount trigger handler class - I need to fetch "Name" value from Account. 

By using formula field i successfully got the value from account object by using - - Client_Account__r.name 

But when coding in apex trigger class, i am not able to fetch the value- below is my code- 
 
 for (Financial_Account__c fa:triggernew)
 {
string finalstr='';
string totalstr='';
string cName = fa.Client_Account__r.Name;
           
   IF(cName!= Null){
             IF( cName.contains ('NDT/')) {
       	     	totalstr= cName.removeStart('NDT/');
             }else{
                 totalstr = cName;
            }
         }
}
I am getting null in cName variable .
Client_Account__c is a custom field in financial account object and is a lookup with account object.



 
  • July 06, 2017
  • Like
  • 0

I have 4 custom field that needs to be concatinated in a single formule custom field. For example: 

Field1__c  = 'India' 
Field2__c = 'Australia'
Field3__c  = 'America'
Field4__c  = 'London'

Now, in the New Formule field i need the output as: 

C_Field__c = Field1__c+ Field2__c + Field3__c  + Field4__c  ( with '/' seperating all the string) 

ie;.  C_Field__c = 'India/Australia/America/London'

If nothing is enterred in the those 4 fields it should return Field6__c 

  • June 06, 2017
  • Like
  • 0
Is it possible to hide a section on the standard pagelayout based on the picklist selection, For suppose in the below picture 

If i have selected the region as YES in the picklist then it should show the REGION DETAILS section and if the REGION is selected as NO the the REGION DETAILS SECTION Should be hidden.

Please help.


User-added image
  • February 02, 2017
  • Like
  • 0
for (Task t: triggerNew) {
             If(t.callDisposition.contains('Disconnected')){
           t.type = 'Invalid Contact Information';
        } 
         if(t.callDisposition.contains('Busy')){
            t.type = 'No Answer';
         }
        }
Above is my code where i am trying to developer code where field callDisposition contains 'Disconnected' strings it should update the  type as 'Invalid Contact Information' But what's happening is it is only seeing if the field has exact value (case sensitive) . I want if that field contains  set of any string then IF statement should be true.
Please help me on this.
 
  • January 30, 2017
  • Like
  • 0
below is my trigger, I am trying to update a field  when every a user try to update a state field as 'Michigan' then the Physical COuntry Field should automatically change to 'USA'.  Please tell me where am i doing wrong.
Can i use Update  dml statement for after update trigger. because
Below code is throwing error. 

trigger fUpdate on Financial_Account__c (after update) {
    List<Financial_Account__c> acc = [SELECT Id,name, physical_country__c FROM Financial_Account__c WHERE Id IN: Trigger.newMap.keySet()];
system.debug(''+acc);
    for (Financial_Account__c a : acc) {
If(a.state__c == 'Michigan'){
        a.physical_country__c = 'USA';
}
 
  }
   update acc;
 
   
}

User-added image
 
  • January 30, 2017
  • Like
  • 0
Hi i got a custom WSDL file and when ever i try to request data from salesforce from external application through wsdl it is asking me session id , Is there any way where i can access the salesforce data through wsdl file with out entering session id each and every time or like anything where we can include authentication in the same apex class and then generate the wsdl file where the authentication will take pace internally or something like that.
  • January 05, 2017
  • Like
  • 0
Hello,

I am using an inline VF page on a custom object page layout to calculate current location coordinates of user. Inline VF page calls an Apex Class and updates Geolocation fields in Custom Object with current location coordinates. Since it is inline VF page so everything happens behind the scenes. Is there any way to reload the Detail page from where VF page was triggered automatically once it has calculated the current location coordinates.