Hello All, OS experts - Greetings !
I am trying to complete the following code to extract the year and month from a given date. To help with validation and debugging, I've enabled BRAPI.ErrorLog.Lo...
Given this a Thing Planning register field, I believe you need to be referencing the "internal" register filed name (such as Code1, TermDate, etc), and not the user visible "alias" of the field. If you are unsure what the internal register field name is, go to Thing Planning Settings, and then Register Field List to see how the internal field names have been mapped to the visible field aliases.
If you are still in doubt, dump out the dictionary keys or keys and values found in args.NameValuePairs, as you are currently trying to access a dictionary key that does not exist in the dictionary.
I attempted to use both the alias and the actual register field names, but neither worked.
ActiveDate is the actual register field name.
LetDate is the alias name for ActiveDate.
===============================
Dim wLetdate As String = args.NameValuePairs.XFGetValue("ActiveDate") '' e.g., "01/01/2025" (MM/DD/YYYY format) '' Log the retrieved Date for debugging 'BRAPI.ErrorLog.LogMessage(si, "wLetdate is: " & wLetdate)