Integrations and APIs for Service

Get Involved. Join the Conversation.

Topic

    Joses
    Custom Date/Time Field
    Topic posted February 24, 2010 by Joses Red Ribbon: 250+ Points, last edited October 29, 2011 
    2410 Views, 17 Comments
    Title:
    Custom Date/Time Field
    Content:

    We are having an issue in updating a custom Date/Time field from an add-in. We are able to update a string and int custom field with no issue. We have tried different formats of the date and nothing seems to work. What format does it have to be in? Can we pass in for example just "02/23/2010"

    Code Snippet:

    Comment

    • Ryan McCullough

      Is your custom field a "Date" custom field or a "Date/Time" custom field? If it is a "Date/Time" you have to use the ValDttm property, not the ValDate property.

      The field takes a System.DateTime object in .NET (which is what it looks like you are using).

    • Joses

      My custom field is a "Date/Time" custom field. I tried setting it with ValDttm and it didn't work. My code looks as follows:

      wsTask.CustomField[iTskItem].ValDttm =

      DateTime.Now;

       

       

       

       

       

       

       

    • Ryan McCullough

      Joses,

      Can you enable logging and post the log? If you are using RN Connect Data Integration, there is a post called "HowTo: Enable logging in the RightNow Connect Data Integration library" that details how to do this. If you are using the RN Connect Desktop Integration (.NET) Add-In Framework, you will need to refer to the product manual on how to enable communication logging in the agent console.

    • Joses

      This is what the log has:

      3/2/2010 11:11:46 PM Use            Created workspace component add-in in run-time mode.
      3/2/2010 11:13:23 PM Use            Add-in requested workspace record of type Organization.
      3/2/2010 11:13:26 PM Use            Add-in requested workspace record of type Task.
      3/2/2010 11:13:29 PM Use            Add-in called record context RefreshWorkspace.
      3/2/2010 11:13:30 PM Use            Add-in executed ribbon command Save.

    • Ryan McCullough

      Joses, that is the add-in log. Please enable the communication log and post the results (be sure to sanitize it first).

    • Joses

      Is the communication log the same as the error log in the system configuration? I couldn't find anything about the communication log in the user or administrator manual.

    • Joses

      Can anyone help me find this communication log?

    • Ryan McCullough

      Joses,

      Attached is a screenshot showing how to enable the communication log for the agent console.

    • Joses

      I do not have the debugging option.  My agent console looks like yours except for the "Debugging" Option I have "Add-In Logging." Is there something I need to do to see the Debugging option?

      Thank you.

    • Ryan McCullough

      This might be an option in the account profile, I am not sure. You would receive more help with this particular question in the customer community as this is functionality outside of RN Connect.

    • Joses

      I learned how to debug the add-in. I see that my custom date/time field is being populated correctly in the task object but the value isn't populated in the workspace. Why is that?

    • Chris Omland

      Is your add-in refreshing the workspace after you set the value?

    • Joses

      Yes my add-in is refreshing the workspace after settig the value....I am calling RecordContext.RefreshWorkspace();

    • Chris Omland

      What version are you running?

    • Joses

      We are running the August 09 version