0

i have an error. I have create a new button for create opportunity with default field value but in the Open Date and Close Date field he has an error, i have the right format of date but he accept them only when i choose the date on the calendar

/lightning/o/Opportunity/new?defaultFieldValues=
    
    AM_Open_Date__c={!TODAY()},
    CloseDate={!TODAY() + 365},
    
    &count=1&nooverride=1&useRecordTypeCheck=1&navigationLocation=RELATED_LIST&uid={!Opportunity.Id}&ws=%2Flightning%2Fr%2FAccount%2F{!Opportunity.Id}%2Fview
1
  • For Date fields can you try {!TEXT(TODAY() )} Commented Jul 21, 2022 at 10:47

1 Answer 1

0

Can you try passing the date fields by converting them to string as below

 AM_Open_Date__c={!TEXT(TODAY())},
 CloseDate={!TEXT(TODAY() + 365)},
1
  • Oh thanks it's work !
    – DiutG
    Commented Jul 21, 2022 at 13:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .