6 Replies Latest reply on Mar 14, 2018 4:25 PM by Christopher.Bakken

    RETURNING VALUE FROM AN INTERNAL WEB SERVICE

    WARRIOR Apprentice

      I have a need to make an internal web service return a value.

       

       

      FIND RECID OR OTHER VALUES FROM A BUSINESS OBJECT USING VALUE FROM ANOTHER FIELD

       

       

      From the blog link above, I succeeded in creating internal web service that are capable of targeting a specific record in a table, updating fields such record, read fields from the record, and writing to console.

       

       

      I tried the simple JavaScript return statement:

       

       

       

      var thisIncident = Get('Incident#', '$(CurrentUserRecId())');

      var rtnVal = thisIncident.Fields.LogInID;

      return rtnVal;

       

       

       

      This threw the following exception:

       

       

       

       

       

       

       

      How do I make internal web services return a value?