• Sukumar V
  • NEWBIE
  • 30 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 18
    Questions
  • 7
    Replies
Hi..,
I am calling the Child component from the Parent component..so, it is successfully done.
but
along with that i want to pass the Record Id from Parent component to Child component using Aura component.
Thanks
Hi all..,
pls suggest how to customise the ContentVersion (Files) object list view..
i.e.
I want to display my new custom fields in the list view.
Thanks.
Hi all,
I want to give Visible & Edit access permission to a specific field based on another field.
for eg: i have 2 fields..i.e. Status__c and Priority__c.
now if Status__c field is equal to "Normal" then i want to give Visible & Edit access permission to the Priority__c field. 
pls suggest any ides.
Thanks
Hi..,
Whenever i uploaded a new file doc related to Case record, i want to create new Task which needs to be assigned to Case Owner.
so, suggest me any ideas to fulfill this requirement.
Thanks.
Hai..,
I want to display the custom fields in the Custom list view of Files. As per my knowledge, we can't customise the list view of Files object. so, i am going for component for achieveing this requirement.
so, pls sugget me how to customise the File's list view using component.
Thanks.
Hai.,
My actual requirement is..
1. I want to create the custom fields in Attachment Object
2. Based on the created fields, i wanted to generate Task automation process by applying conditions to those fields.
is it possible? if yes, let me know. thanks
==============
in my analysis of reaserch, i found that we shouldn't use Attachment object anymore in Salesforce.. instead of that we use ContentVersion object.
so, as i mentioned the 1st point above.., now i am created few custom fields in ContentVersion Object.
Now, i want to generate Task automation process based on these fields.
i don't know how to proceed?
Thanks
 
hai,
i am having a number field i.e. Amount__c with default value as "00". but when i am creating record it shows only one zero i.e. "0". I want to display it as "00". What shall i do now?
Thanks
Hai..,i am having multiple apex classes & some of the classes are interlinked. For eg. if ApexClass1 is inserted. based on that i updated ApexClass2 like that.
so, for avoidning recursion.. now i am using Single recrsive apex class for all apex classes..is it correct way or shall i need to create each recrsive class for each apex class?
Thanks in Advance.
I have 2 Objects..i.e. Parent & Child objects.
In Parent Object.., i have 2 fields..numberOfRecords__c & Total_Amount__c.
In Child Object.., i have 2 fields..Parent__c(lookup to Parent__c) & Amount__c.
Now my requirement is whenever the child record is changes to another new Parent record..
then i want to update Both (numberOfRecords__c & Total_Amount__c) fields for new Parent record.
Suggest any code.
Thanks in Advance.
Hi all, 

i have 3 obj's..i.e. Account, Invoice__c & Payment__c (Account is parent to Invoice__c & Invoice__c is parent to Payment__c)
Invoice_Amount__c, Invoice_Status__c & Invoice_Date__c fields are in Invoice__c obj.
Total_Payment_Amount__c field is in Payment__c obj.
Account_Status__c field is in Account obj.

i am created Invoice records through based on monthly schedule based.
now my requirement is..i want to update Invoice_Status__c & Account_Status__c fields based on below conditions.
1. when ever Today - Invoice_Date__c = 30 days
2. Either i have related payments or not.
3. if i have related payments.. then we need to check Total_Payment_Amount__c is less than that of Invoice_Amount__c

then only i want to update Status of Invoice__c & Account.

thanks in advance
Hi all, 

     i have one field in child and parent, in child object i.e. bank_balance__C and in parent object i.e. Totalbankbalance__C. 
 For example,
             record1------- bank_balance__C =100
             record2------- bank_balance__C =100
             record3------- bank_balance__C =100
my required field is totalbankbalance__C =bank_balance__C+bank_balance__C+bank_balance__C
                             totalbankbalance__C=300.

can any one help me.
thanks in advance
======================
Main Class
======================

global class ScheduleInvoice implements Schedulable {
    public static String CRON_EXP = '0 0 0 1 * ? *';
    global static String scheduleIt() {
        ScheduleInvoice sm = new ScheduleInvoice();
        return System.schedule('Monthly Reconciliation', CRON_EXP, sm);
    }
    global void execute(SchedulableContext sc) {Id AccountEIDrecordTypeId = Schema.getGlobalDescribe().get('Account').getDescribe().getRecordTypeInfosByName().get('EID').getRecordTypeId();
        Id AccountPVCrecordTypeId = Schema.getGlobalDescribe().get('Account').getDescribe().getRecordTypeInfosByName().get('PVC').getRecordTypeId();
        Id AccountPMCrecordTypeId = Schema.getGlobalDescribe().get('Account').getDescribe().getRecordTypeInfosByName().get('PMC').getRecordTypeId();
        Id AccountVMCrecordTypeId = Schema.getGlobalDescribe().get('Account').getDescribe().getRecordTypeInfosByName().get('VMC').getRecordTypeId();
        Id InvoiceVRCrecordTypeId = Schema.getGlobalDescribe().get('Invoice__c').getDescribe().getRecordTypeInfosByName().get('VRC').getRecordTypeId();
        
        set<ID> recordIds = new Set<ID>();
        recordIds.add(AccountEIDrecordTypeId);
        recordIds.add(AccountPVCrecordTypeId);
        recordIds.add(AccountPMCrecordTypeId);
        recordIds.add(AccountVMCrecordTypeId);
        
        List<Invoice__c> invoiceList = new List<Invoice__c>();
        List<Invoice__c> invList = new List<Invoice__c>();
        Integer m = Date.Today().Month();
        Date firstDayOfMonth = System.today().toStartOfMonth();
        Date lastDayOfMonth = firstDayOfMonth.addDays(Date.daysInMonth(firstDayOfMonth.year(), firstDayOfMonth.month()) - 1);
        Date invDesDate = system.Today().addMonths(1);
        Integer invMonth = invDesDate.Month();
        Integer invYear = invDesDate.year();
        String MonthName;
      
        for (Account acct: [
            select Id, Active__c RecordTypeId
            from Account
            where RecordTypeId IN: recordIds and Active__c = true
        ]) {
                Invoice__c inv = new Invoice__c();
                inv.Account__c = acct.Id;
                inv.Status__c = 'Accepted';
                inv.Date__c = system.Today();
                switch on m {
                    when 1 {        
                        invoiceDate__c = 'Jan 1 to Jan 31';
                    }    
                    when 2 {        
                        invoiceDate__c = 'Feb 1 to Feb 28';
                    }
                    when 3 {
                        invoiceDate__c = 'Mar 1 to Mar 31';
                    }
                    when 4 {          
                        invoiceDate__c = 'Apr 1 to Apr 30';
                    }
                     when 5 {        
                        invoiceDate__c = 'May 1 to May 31';
                    }    
                    when 6 {        
                        invoiceDate__c = 'Jun 1 to Jun 30';
                    }
                    when 7 {
                        invoiceDate__c = 'Jul 1 to Jul 31';
                    }
                    when 8 {          
                        invoiceDate__c = 'Aug 1 to Aug 31';
                    }
                    when 9 {        
                        invoiceDate__c = 'Sep 1 to Sep 30';
                    }    
                    when 10 {        
                        invoiceDate__c = 'Oct 1 to Oct 31';
                    }
                    when 11 {
                        invoiceDate__c = 'Nov 1 to Nov 30';
                    }
                    when 12 {          
                        invoiceDate__c = 'Dec 1 to Dec 31';
                    }
                }                                                                                                                
                   inv.Payment_Due_Date__c =  lastDayOfMonth; 
                switch on invMonth {
                    when 1 {        
                        MonthName = 'January';
                    }    
                    when 2 {        
                        MonthName = 'February';
                    }
                    when 3 {
                        MonthName = 'March';
                    }
                    when 4 {          
                        MonthName = 'April';
                    }
                     when 5 {        
                        MonthName = 'May';
                    }    
                    when 6 {        
                        MonthName = 'June';
                    }
                    when 7 {
                        MonthName = 'July';
                    }
                    when 8 {          
                        MonthName = 'August';
                    }
                    when 9 {        
                        MonthName = 'September';
                    }    
                    when 10 {        
                        MonthName = 'October';
                    }
                    when 11 {
                        MonthName = 'November';
                    }
                    when 12 {          
                        MonthName = 'December';
                    }
                }
            inv.RecordTypeId = InvoiceVRCrecordTypeId;
                inv.Description__c = MonthName + ' ' + String.valueof(invYear) + ' ' + 'TMC';
                
               invList.add(inv);
        }
          
        if (!invList.isEmpty()) {
            insert invList; 
        }   
    }
}

===========================
Test Class
===========================
@isTest
public class CreatingInvoice_Test {
    @isTest static void executeTest(){
        
        Test.startTest();
        
        Id AccountPVCrecordTypeId = Schema.getGlobalDescribe().get('Account').getDescribe().getRecordTypeInfosByName().get('PVC').getRecordTypeId();
        Id AccountPMCrecordTypeId = Schema.getGlobalDescribe().get('Account').getDescribe().getRecordTypeInfosByName().get('PMC').getRecordTypeId();
        Id AccountVMCrecordTypeId = Schema.getGlobalDescribe().get('Account').getDescribe().getRecordTypeInfosByName().get('VMC').getRecordTypeId();
        Id InvoiceVRCrecordTypeId = Schema.getGlobalDescribe().get('Invoice__c').getDescribe().getRecordTypeInfosByName().get('VRC').getRecordTypeId();
        
        SchedulableContext sc = null;
        ScheduleInvoice CI = new ScheduleInvoice();
        CI.execute(sc);
        
        account a = new account();
        a.Name = 'Test Account';
        a.Active__c = true;
        a.RecordTypeId = AccountVMCrecordTypeId;
        
        insert a;
        
        ScheduleInvoice CI1 = new ScheduleInvoice();
        String sch1 = '0 0 0 1 * ? *'; 
        system.schedule('ScheduleInvoice', sch1, CI1);
        
        Test.stopTest();
    }
}
switch on m {
                    when 1 {        
                        invoiceDate__c = 'Jan 1 to Jan 31';
                    }    
                    when 2 {        
                        invoiceDate__c = 'Feb 1 to Feb 28';
                    }
                    when 3 {
                        invoiceDate__c = 'Mar 1 to Mar 31';
                    }
                    when 4 {          
                        invoiceDate__c = 'Apr 1 to Apr 30';
                    }
                     when 5 {        
                        invoiceDate__c = 'May 1 to May 31';
                    }    
                    when 6 {        
                        invoiceDate__c = 'Jun 1 to Jun 30';
                    }
                    when 7 {
                        invoiceDate__c = 'Jul 1 to Jul 31';
                    }
                    when 8 {          
                        invoiceDate__c = 'Aug 1 to Aug 31';
                    }
                    when 9 {        
                        invoiceDate__c = 'Sep 1 to Sep 30';
                    }    
                    when 10 {        
                        invoiceDate__c = 'Oct 1 to Oct 31';
                    }
                    when 11 {
                        invoiceDate__c = 'Nov 1 to Nov 30';
                    }
                    when 12 {          
                        invoiceDate__c = 'Dec 1 to Dec 31';
                    }
                }
i Got this Error while executing the flow in community page..."An unhandled fault has occurred in this flow...An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information." 
but..whenever i debugging that same flow in flows...its working fine without populating error.
User-added image
i am getting this error while invoking our Org from the Third party Services..i.e. Workbench tool.. this is a @httpGET method.
how to schedule the existing reports in lighning.
i want to reduce the size of Header image in community page and along with i want to chage the background colour for each component section in Community.
One of my Users is unable to edit their own Task Information.. while updating Task info, User get error like..."insufficient access rights on object id". so, i checked all Workflows, Process Builders and Triggers but no records created in the Org under these catagories. As an Administrator i don't want to give "Modify All" access. if i give "Modify All" access to User, then User is able to Update his Task info, again if i unselect "Modify All" access to user it popup's same error. now, i didn't understand how to reslove this issue.
Hi..,
I am calling the Child component from the Parent component..so, it is successfully done.
but
along with that i want to pass the Record Id from Parent component to Child component using Aura component.
Thanks
Hi all..,
pls suggest how to customise the ContentVersion (Files) object list view..
i.e.
I want to display my new custom fields in the list view.
Thanks.
hai,
i am having a number field i.e. Amount__c with default value as "00". but when i am creating record it shows only one zero i.e. "0". I want to display it as "00". What shall i do now?
Thanks
Hi all, 

     i have one field in child and parent, in child object i.e. bank_balance__C and in parent object i.e. Totalbankbalance__C. 
 For example,
             record1------- bank_balance__C =100
             record2------- bank_balance__C =100
             record3------- bank_balance__C =100
my required field is totalbankbalance__C =bank_balance__C+bank_balance__C+bank_balance__C
                             totalbankbalance__C=300.

can any one help me.
thanks in advance
switch on m {
                    when 1 {        
                        invoiceDate__c = 'Jan 1 to Jan 31';
                    }    
                    when 2 {        
                        invoiceDate__c = 'Feb 1 to Feb 28';
                    }
                    when 3 {
                        invoiceDate__c = 'Mar 1 to Mar 31';
                    }
                    when 4 {          
                        invoiceDate__c = 'Apr 1 to Apr 30';
                    }
                     when 5 {        
                        invoiceDate__c = 'May 1 to May 31';
                    }    
                    when 6 {        
                        invoiceDate__c = 'Jun 1 to Jun 30';
                    }
                    when 7 {
                        invoiceDate__c = 'Jul 1 to Jul 31';
                    }
                    when 8 {          
                        invoiceDate__c = 'Aug 1 to Aug 31';
                    }
                    when 9 {        
                        invoiceDate__c = 'Sep 1 to Sep 30';
                    }    
                    when 10 {        
                        invoiceDate__c = 'Oct 1 to Oct 31';
                    }
                    when 11 {
                        invoiceDate__c = 'Nov 1 to Nov 30';
                    }
                    when 12 {          
                        invoiceDate__c = 'Dec 1 to Dec 31';
                    }
                }
User-added image
i am getting this error while invoking our Org from the Third party Services..i.e. Workbench tool.. this is a @httpGET method.
i want to reduce the size of Header image in community page and along with i want to chage the background colour for each component section in Community.
One of my Users is unable to edit their own Task Information.. while updating Task info, User get error like..."insufficient access rights on object id". so, i checked all Workflows, Process Builders and Triggers but no records created in the Org under these catagories. As an Administrator i don't want to give "Modify All" access. if i give "Modify All" access to User, then User is able to Update his Task info, again if i unselect "Modify All" access to user it popup's same error. now, i didn't understand how to reslove this issue.