function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
GeetuGeetu 

inputParameters.get

hi , i have a apex class which has
 String recordTypeId = inputParameters.get('recordTypeId');
String accountId=inputParameters.get('accountId'); 

i nee dto have another input date, how can i take todays date as an input? 

thanks in advance for help. 
Raj VakatiRaj Vakati
You can set the value to system.today() with get and set .. 

Can you please elaorbate what your are trying to do ?? 
GeetuGeetu
Hi Raj, 

We have a agreement wizard, on that we have couple of questions - one of the question is " Agreement start date" , so i want to auto populate the date field to Todays date. so here is the code which i have added 

Question__C== 'What will be the startdate of the agreement?'){
                      Date TodaysDt = System.today();
                     parentAgreement.Apttus__Contract_Start_Date__c = System.today();
                     WizardResponse.UserResp userResponse = new Wizard.UserResp();
                     UserResp.Question = 'What will be the effective date of the agreement?';
                     UserResp.inputRepeatSequence = 0;
                     UserResp.inputControlId = inputObj.id;
                    UserResp.Answer=String.valueOf(parentAgreement.Apttus__Contract_Start_Date__c);
                     userResponseList.add(userResponse); 

this is to auto polulate agreement start date, code runs with error but still anser doessnt get auto polulated,

Hope i am clear. Looking for your expeirence suggestions.