• SFUser
  • NEWBIE
  • 50 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 24
    Questions
  • 7
    Replies

While creating Case record using Flows..

i am using screen component that hepls to user to select multiple Accounts (Multi-picklist) who are having the same record type and stores those ids in the text datatype field in Case object.

For now that text datatype field displaying the total selected Account ids with comma seperated values.

but my question is

how to display those respective account names despite Account ids.

  • September 28, 2022
  • Like
  • 0

hi all..,
how to get the camelCase string with in the parenthesis brackets in the LWC JS..
for eg: Testing User (from all over the world)
now we want to display that string as..
Testing User (From All Over The World)
Thanks in advance.

  • August 28, 2022
  • Like
  • 0

hi all..,
my requirement is...

we have string value and that should be convert to "capitalize" in the LWC component..

For eg:

string = 'testing sf user"
i want to convet that string into "Testing Sf User"

thanks in advance..

  • August 12, 2022
  • Like
  • 0
Hi all..,
I want to print the multiple sections data using LWC.
So suggest me from where i need to start the coding and get the printable data in my org
Hi...,
we have 2 objects...
i.e.
Amount__c and Monthly_Installment__c

in the Amount__c object... we have (Total_Payment__c, No_of_Installments__c and Payment_start_date__c) fields...

in the Monthly_Installment__c object... we have (Installment_Amount__c, Installment_date__c) fields..
===============
While craeting Amount__c record
with
(Total_Payment__c = 3000, No_of_Installments__c = 12, Payment_start_date__c = Mar 10, 2022)
details...
------
we want to create as many Monthly_Installment__c records as No_of_Installments__c selected (coming from Amount__c)...
with
Installment_date__c as Apr 10th, May10th, June 10th etc on each Monthly_Installment__c record...
upto 12 records)
(whatever the date selected in Payment_start_date__c..
we want same date should appeared on each Installment_date__c record)
----
Thanks in Advance...
 
  • March 09, 2022
  • Like
  • 0
Parent record: Invoice (Fields: Amount__c, No_of_terms__c, Invoice_Date__c)
Child Record: Monthly_Payment__c (Fields: Payment_amount__c, Payment_date__c, Invoice__c)
====================================
When ever Invoice(Parent) record is created/ update with..
Amount__c = $1000;
No_of_Terms__c = 9;
invoice_date__c = today();
-----------
then i want to create Monthly Payments records as many as no_of_terms...
and
-----
for upto....
monthly payment records = no_of_terms - 1
Payment_amount__c = 111.11 (we calculate upto 2 decimals)
((should be equel to (1000/8) = 111.11))
Payment_date = today()+30 (for 1st monthly payment record)
(today()+60...for 2nd monthly payment record)
(today()+90...for 3rd monthly payment record....)like that
----------------------

for last monthly payment record (i.e. 9th monthly payment record)
-----
Payment_amount__c = (1000-(111.11*8)) = 111.12
payment_date__c = today()+270
==============================
==============================
  • February 28, 2022
  • Like
  • 0
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
  • November 23, 2021
  • Like
  • 1
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.
  • November 15, 2021
  • Like
  • 0
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
  • September 08, 2021
  • Like
  • 0
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.
  • September 03, 2021
  • Like
  • 0
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.
  • September 01, 2021
  • Like
  • 0
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
 
  • August 26, 2021
  • Like
  • 0
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
  • August 24, 2021
  • Like
  • 0
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.
  • August 23, 2021
  • Like
  • 0
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.
  • August 18, 2021
  • Like
  • 0
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
  • August 16, 2021
  • Like
  • 0
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
  • August 13, 2021
  • Like
  • 0
======================
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();
    }
}
  • August 06, 2021
  • Like
  • 0
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';
                    }
                }
  • August 05, 2021
  • Like
  • 0
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.
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
  • November 23, 2021
  • Like
  • 1
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.
  • November 15, 2021
  • Like
  • 0
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
  • August 24, 2021
  • Like
  • 0
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
  • August 13, 2021
  • Like
  • 0
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';
                    }
                }
  • August 05, 2021
  • Like
  • 0
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.