0

I am trying to auto-populate the 2 fields in Account record during the creation of itself. But for LongTextField__c field it's working fine but for Amount it's not reflecting the value in Account record. Can anyone please help me out. Thanks

createRecordEvent.setParams({
    'entityApiName': 'Account',
    'defaultFieldValues': {
        'RichTextField__c' : accountList,
        'Amount__c' : 12334.56
        },
    'recordTypeId' : recordtypeNameVar
});
  • have you tried to use 12334,56 instead of 12334.56? – Patlatus Apr 18 at 10:47
  • but i want to save values with decimal , will it come as decimal in currency ? – RAT__ Apr 18 at 11:01
  • It is not clear what you are asking, probably you could provide error that you are receiving? – Patlatus Apr 18 at 11:03
  • Hi Patlatus, I am not getting any error its just not populating the value of Amount (Currency field) on Account record. – RAT__ Apr 18 at 12:11
0

There's no standard Account field named Amount. I presume you're using a custom field, so you'd state so in your defaults:

Amount__c: 12334.56

Always make sure you verify if a field is standard or custom field.

  • Yes, Thanks for reminding me that is a custom field but still its not populating the values on to the account. Is there any specific way to assign Decimal value to Currency in 'defaultFieldValues' ? – RAT__ Apr 18 at 12:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.