Trouble passing collected variables in one catalogue item to another it is creating

Hi

So this is the intended process:

When a new person starts HR will log a service request: 0010. New User Request. This request will capture all the details: Name, Cellphone, Employee no, Manager, Printing, ERP, etc. These are a combination of text and checkboxes.

This ticket has some logic in the processes and once I have procured the hardware, it needs to generate a catalogue item: 0011. New User Creation, passing many of these variables for the Technician’s info and attention. It also needs to reference the ticket create by 0011 to the ticket created by 0010.

This is the first time that I am working with an API.

So far I have gotten it to create the new 0011 ticket, but it doesn’t check any of the variables etc upon creation.

Here is the code that I have used:

METHOD is POST.

https://apieu.samanage.com/catalog_items/1126288-0011/service_requests.xml

ADDITIONAL HEADERS are

Content-Type and Accept, both with the value application/xml

BODY:

<incident>

<request_variables_attributes type="array">

<request_variable_attribute>

     <name>New Users Name</name>

     <value>{{New Users Name}}</value>

     <name>New Users Surname</name>

     <value>{{New Users Surname}}</value>

     <name>New Users Cell Number</name>

     <value>{{New Users Cell Number}}</value>

     <name>New Users Position Title</name>

     <value>{{New Users Position Title}}</value>

     <name>New Users Department</name>

     <value>{{New Users Department}}</value>

     <name>Office Location</name>

     <value>{{Office Location}}</value>

     <name>New User Reports to</name>

     <value>{{New User Reports to}}</value>

     <name>Show Cell Number on Email Signature</name>

     <value>{{Show Cell Number on Email Signature}}</value>

     <name>Proposed Email Address for New User</name>

     <value>{{Proposed Email Address for New User}}</value>

     <name>Requires Printing</name>

     <value>{{Requires Printing}}</value>

</request_variable_attribute>

</request_variables_attributes>

</incident>

 

Does anyone have some pointers?

 

Thanks

Parents
  • <incident><custom_fields_values>
    <custom_fields_value><name>New Users Name</name>
    <value>{{New Users Name}}</value></custom_fields_value>

    <custom_fields_value><name>New Users Surname</name>
    <value>{{New Users Surname}}</value></custom_fields_value>

    <custom_fields_value><name>New Users Cell Number</name>
    <value>{{New Users Cell Number}}</value></custom_fields_value>
        
    <custom_fields_value><name>New Users Position Title</name>
    <value>{{New Users Position Title}}</value></custom_fields_value>

    <custom_fields_value><name>New Users Department</name>
    <value>{{New Users Department}}</value></custom_fields_value>

    <custom_fields_value><name>Office Location</name>
    <value>{{Office Location}}</value></custom_fields_value>

    <custom_fields_value><name>New User Reports to</name>
    <value>{{New User Reports to}}</value></custom_fields_value>

    <custom_fields_value><name>Show Cell Number on Email Signature</name>
    <value>{{Show Cell Number on Email Signature}}</value></custom_fields_value>

    <custom_fields_value><name>Proposed Email Address for New User</name>
    <value>{{Proposed Email Address for New User}}</value></custom_fields_value>

    <custom_fields_value><name>Requires Printing</name>
    <value>{{Requires Printing}}</value></custom_fields_value>

    </custom_fields_values></incident>

Reply
  • <incident><custom_fields_values>
    <custom_fields_value><name>New Users Name</name>
    <value>{{New Users Name}}</value></custom_fields_value>

    <custom_fields_value><name>New Users Surname</name>
    <value>{{New Users Surname}}</value></custom_fields_value>

    <custom_fields_value><name>New Users Cell Number</name>
    <value>{{New Users Cell Number}}</value></custom_fields_value>
        
    <custom_fields_value><name>New Users Position Title</name>
    <value>{{New Users Position Title}}</value></custom_fields_value>

    <custom_fields_value><name>New Users Department</name>
    <value>{{New Users Department}}</value></custom_fields_value>

    <custom_fields_value><name>Office Location</name>
    <value>{{Office Location}}</value></custom_fields_value>

    <custom_fields_value><name>New User Reports to</name>
    <value>{{New User Reports to}}</value></custom_fields_value>

    <custom_fields_value><name>Show Cell Number on Email Signature</name>
    <value>{{Show Cell Number on Email Signature}}</value></custom_fields_value>

    <custom_fields_value><name>Proposed Email Address for New User</name>
    <value>{{Proposed Email Address for New User}}</value></custom_fields_value>

    <custom_fields_value><name>Requires Printing</name>
    <value>{{Requires Printing}}</value></custom_fields_value>

    </custom_fields_values></incident>

Children
No Data