Script to "Add New Request"

Script to "Add New Request"

Hello everyone,

I am brand new to scripting in general and am struggling quite a bit with creating a new request based on another request being submitted within Service Desk Plus.

I have a New Hire Request template setup and have a few check boxes for hardware items. I've setup a Field and Form Rule for when the "Laptop" checkbox is checked to execute a script. I would like this script to create a new request based on another template. I am at an utter loss on how to create the script to fulfill my need here. Can anyone shed some light on this please??

I have used multiple sources of information but have not gotten anywhere :( 


The below unfortunately doesn't make any sense to me. I have no clue what a POST attribute is nor where I enter it inside the script. I have also checked out the API Documentation but again I do not follow what needs to be done. 

Thank you for any information you can provide!

Key Points:

  1. The operation name "ADD_REQUEST"  should be sent as a "POST attribute" with key "OPERATION_NAME".

  2. The technician key should be sent as a "POST attribute" with key "TECHNICIAN_KEY".

  3. Input is an XML string sent as a "POST attribute" with key "INPUT_DATA".

Input - Format 1 for Service Request:

 

<Operation>

<Details>

<parameter>

<name>requesttemplate</name>

<value>Request a CRM account</value>

</parameter>

<parameter>

<name>technician</name>

<value>Howard Stern</value>

</parameter>

<parameter>

<name>level</name>

<value>Tier 3</value>

</parameter>

<resources>

<resource>

<title>System Requirements</title>

<parameter>

<name>Choose the desktop model</name>

<value>Dell</value>

</parameter>

<parameter>

<name>Choose the devices required</name>

<value>iPhone</value>

<value>Blackberry</value>

</parameter>

</resource>

<resource>

<title>Additional Requirements</title>

<parameter>

<name>Choose the additional hardware required</name>

<value>Optical Mouse</value>

</parameter>

</resource>

</resources>

<parameter>

<name>editor</name>

<value>administrator</value>

</parameter>

<parameter>

<name>serviceapprovers</name>

<value>administrator</value>

<value>guest</value>

</parameter>

<!--Common Additional Field-->

<parameter>

<name>Employee ID</name>

<value>0217</value>

</parameter>

<!--Service Category Specific Additional Field --!>

<parameter>

<name>RAM Size</name>

<value>8 GB</value>

</parameter>

</Details>

</Operation>

                New to ADManager Plus?

                  New to ADSelfService Plus?