3 Replies Latest reply on Jan 29, 2018 10:03 AM by Christopher.Bakken

    Create SR with WebService

    AnthonyDowns Specialist

      Can you use the "triggered by" option for fields in request offering when creating the request through the web service? I have a simple test SR setup with a dropdown box and checkbox. If yes is entered then checkbox is true else false.

       

      This works fine when creating the request within Heat but if the request is made with the web service the checkbox never updates. 

        • 1. Re: Create SR with WebService
          SupportEmployee

          The API has no GUI access, so you have to push all values in the call.

           

          The API has no ability to evaluate logic in that sense either, if you know the value needs to be set in the offering, set it in the code.

           

                   <saas:srparameters>

                      <saas:FRSHEATServiceReqParam>

                         <saas:strName>combo_1</saas:strName>

                         <saas:strValue>Yes</saas:strValue>

                      </saas:FRSHEATServiceReqParam>

           

                      <saas:FRSHEATServiceReqParam>

                         <saas:strName>checkbox_1</saas:strName>

                         <saas:strValue>true</saas:strValue>

                      </saas:FRSHEATServiceReqParam>

                   </saas:srparameters>

           

          • 2. Re: Create SR with WebService
            AnthonyDowns Specialist

            It does evaluate some logic though.

             

            In this test case, I have two fields "Name" and "Position". The "Position" field has a required expression based on "Name" having a value. If I try to pass a value to "Name" only it will error out.

             

            Field settings

            Required expression

             

            Error. Passing "Name" value only.

            • 3. Re: Create SR with WebService
              SupportEmployee

              Required rules aren't going to be the same as default values.