Question2Replies107Views JamesK69 Member since 2014 9 posts Fusion Technology Posted: 2 years agoLast activity: 2 years 1 month ago Closed When Rule Unit Test - Using function for inputI created at PegaUnit test for a when rule. I selected multiple input combinations.I have one input that is a DateTime field. I would like to use a function to populate the Current Date Time rather than using static data, but I have not been able to successfully do this.Is it possible to use a function or a parameter to populate the inputs? DevOps Low-Code App Development Testing Applications ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Posted: 2 years agoGayatri incessant replied to JamesK69yes can you try currentdatetime function ? Posted: 2 years agoJamesK69 Fusion Technology replied to GayatriI tried, but when I trace the test case the date value passed is @DateTime.CurrentDateTime instead of the actual date.