Integrations and APIs for Service

Get Involved. Join the Conversation.

Topic

    Mark Fowkes
    Access ID of a newly created custom object from within a...
    Topic posted May 3, 2013 by Mark Fowkes 
    282 Views, 2 Comments
    Title:
    Access ID of a newly created custom object from within a browser control using the Javascript API
    Content:

    I am using the RightNow Connect Desktop Integration (Javascript) to save some data to a custom object inside a browser control in a workspace in the console.


     
    The code works fine when the object already exists and is being updated. I only have the problem when creating new records.
     
    As you would expect, when a new record is being created by the user in the console, it has not yet been assigned an ID. The ID is only assigned after the record has been successfully saved.
     
    I need to associate some other records to the new object, therefore I need to know the record's ID at the moment the form has been saved, i.e. inside the onsave() event.
     
    I would have assumed that the ID would be available from within the "onsave()" event. However, it does not seem to be available there.
     
    How can I get the ID of a new object using the RightNow Connect Desktop Integration (Javascript)?
     
    Thanks a lot!
    Version:
    November 11

    Comment