Custom ticket fields and the API
We use some custom fields such as "team" in our tickets, but when I use the "Get Requests" endpoint of the REST API, I can only get data from the default fields (workorderid, subject, requester, createdby, createdtime, duebytime, technician, priority, status, isoverdue). Is there a way to add additional custom fields into the API response? Further, can custom fields be edited through the REST API?
CORS policy blocking HTTP requests
I am making a web page that makes POST requests. I am doing this with JavaScript and have tested the request with Node. With Node, I get a response in XML on the console, so my code is 100% correct, but when I actually place it in my web page I get a CORS error. This is the error I get: newPage.htm:1 Access to XMLHttpRequest at 'http://mysitename' from origin 'http://127.0.0.1:5500' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. I have
API class for .NET
I am wondering if there is a prebuilt class for using the ServiceDesk?
Add ciid to requester details?
Hello, We have a pretty involved integration going on with our Tier1 helpdesk (Outsourced, they use ServiceNow). We are running into an issue where if their are multiple users with the same name on the SD+ side, ServiceNow has nothing to call on to determine which Jane Doh is which. And we don't see an API available to reference the CIID for requesters or even technicians. If I create a CIID field in the requester details page, is there a way to fill that field in with their assigned CIID number?
Swagger documentation for ServiceDesk Plus needed
I'm interested in creating an integration between Itential Automation Platform and ServiceDesk Plus. Where can I find the swagger API documentations for ServiceDesk Plus? Thank you in advance, Zack
Request creation via REST API - populating the requester field?
Hi, Is it only possible to put the full name of the requester in the "requester" field in the JSON payload when creating a Request? I tried to add the email address and the login name as well, but in these cases the requester was not recognized, but new requesters were created automatically... If using the full name (case sensitive?) is the only option, what happens if there are two requesters called John Smith? How to distinguish between them? Thanks and best regards, Tamás
ServiceDesk API Callback URL
Hello community, I'm in the progress of evaluating the SDP Rest API. One feature that we require is receiving the status change of a request in various external services. Here it says that one can set a callback URL which is triggered once the ticket has been resolved. https://help.servicedeskplus.com/api/rest-api.html To test this I installed SDP on my machine and created the default ASP.NET Core Web API project. However after creating a ticket via Postman and setting the callback_url to "http://localhost:61046/api/values"
API Calls to create new ticket
Hello, What API calls do I need to make in order to have SDP; 1. CREATE to tickets 2. UPDATE existing tickets Thanks Rob
Extract Notes as Readable Text using API
Hi Pitstop Community, I am trying to extract notes from a ticket in a reader friendly format. I have used an online powershell script from pitstop to extract certain parts of request, construct an email with HTML and then send this to a distribution list. Extracting the request details is straight forward (some example) as below but I cannot find notes. #Add Request fields values as needed $ticket = $obj.request.WORKORDERID #Request ID $notes = $obj.request.NOTES
API search for requests after certain date/time
Hi all, I'm currently trying to get requests from SDP using the API so I can import them into another system. To do this I want to search for the latest requests. I tried multiple things, but all I can currently get is the last 100 items. However, what I would like to have is the requests that were added in the last 5 minutes. Can you please help me in finding out what I'm doing wrong? The current code that does work (python), but without searching for the last 5 minutes: import requests inputdata
How get notifications from json request?
Hello Is there any way for get new technician's notifications by json request?
API response for computer detail empty
Following https://www.manageengine.com/products/desktop-central/api/api-inventory-computersdetailsummary.html I am trying to gather detailed information on machines from an api call, but the response is empty. What I am submitting def getManageEngineOne(resource_id): try: r = requests.get('https://myurl/api/1.3/inventory/compdetailssummary?resid={resource_id}', headers=manageHeaders) except requests.exceptions.HTTPError as err: print (err) pass print (r.text) Ive looped through every resource_id
Retrieve a device's OS name in Rest API
Hi, How could we get the device OS name and version via API request? In the listDevice and getDeviceSummary endpoints, there's a type property which is giving the OS name in some cases (like windows 2008 R2, Windows, Linux (without any more details), ...) But it also has the values like Cisco Catalyst 3750 Series or Compaq Device which obviously aren't OS names. On the other hand, in the listVirtualDevices endpoint, there's an OS_NAME property which gives a more accurate OS details and has only the
Internal Server Error while calling getProbeURL
Hi, Trying to get probe url via API, it returns Internal Server Error: {"error":{"message":"Internal Server Error while processing this request.","code":5000}} This is the sample url I try to get API response through: http://<CentralOPManager>:8060/api/json/device/getProbeURL?apiKey=<API_KEY>&name=172.18.63.3.70000000001 P.s: I don't have access to system logs or OPManager web console with full access permission. Please porpose potential possible reasons for this internal error. Thanks
API call is blocked on central server
Hi, I want to call getDeviceSuammary and many other device/interface specific endpoints on a Master-slave installation of OPManager. But I get this error mesage in API repsone: {"error":{"message":"This operation is blocked in Central Server.","code":5004}} However, The call of listDevice endpoint returns the correct answer without any error. What's the reason and how could I get details of the devices which are behind probes? Thanks
API V3 - Module provided in the request is not supported.
Hi everybody, I'm trying to use the API V3 following this guide: http://ui.servicedeskplus.com/APIDocs3/index.html#view-request However I'm getting the follow message: I would like help to understanding what I'm doing wrong because right now I was not able to figure out what is happening wrong. I'm using the version 9.3 Build 9320. Extra info: I tried to access the API with Python, but it returned the same message. My Python request: response = requests.post('url/api/v3/requests', headers={'Authtoken':
REST API issue updating the ISVIPUSER field
I have no problem updating fields with the API, however I just ran into a issue recently where I would like to set the VIP User flag as true when making a ticket that belongs to a certain group. I make the request but the field stays as "No". Here is my code: OPERATION_NAME=ADD_REQUEST&format=xml TECHNICIAN_KEY:XXXXXXXXXXXX &INPUT_DATA= <Operation> <Details> <ISVIPISER>Yes</ISVIPUSER> </Details> </Operation>
API vs. Manual Action
Is there a way to distinguish which action was done via API versus any action done via UI (manual action)? The reason for this is that I am using my own Technician_Key in all API actions. The problem we have right now is that there is no fine line between a manual action and API-based action. From an audit perspective, all actions are done by me whether it's via API or via a manual action.
REST API and Request Template Trigger all tasks
I am using a powershell script to parse a csv file and create template tickets per line item. So dependent on that data I will be calling different Request Templates, each with their own set of tasks. Is there a way to use "request_template_task_ids" or some other way to trigger all tasks on that particular template, as opposed to having to put each id in for each task I want to trigger? When I run the REST API and create a ticket using a Request Template, no tasks trigger. Thoughts?
Due By Date Update using REST API
I have successfully created EDIT requests with the API that change fields like description, requester, status etc. however, I want to update a tickets Due by Date as well. I have it working perfectly on the test SDPlus that we have set up but when I attempt to update on prod, the ticket says it was updated but the date does not change. Here is my request: OPERATION_NAME=EDIT_REQUEST&format=xml TECHNICIAN_KEY:XXXXXXXXXXXX &INPUT_DATA= <Operation> <Details> <DUEBYTIME>10 JUL 2019, 12:00:00</DUEBYTIME>
Modify REST API JSON Output
Hi everyone, we have a problem with our PMP automation. We are trying to only retrieve the password of a account in a specific ressource. The problem is that there is always the "header" which will be displayed Example: (what it looks like) {"operation":{"name":"GET PASSWORD","result":{"status":"Success","message":"Password fetched successfully"},"Details":{"PASSWORD":"password"}}} What we need: password Is there a way to archive this? Thank you for the help! Best regards Sandro
API V1 Powershell Repo
I put together a small repo of some API V1 powershell functions I've built that work for creating requests, adding notes, and updating requests. Feel free to use any of these you like! https://gist.github.com/aggiebck/60efda1eea63431d5a7d8c05f05379e0
Is it possible to Remove Technicians using API?
I don't see anything in the API documentation outside of viewing Technicians and Requesters but I would like to Automate the removal of Technicians to free up licenses as users are terminated. Has anyone ever been able to automate this process or is it even possible? All Google Searches rendered basically nothing.
Service Desk Plus REST API - '&' Character causes errors when used in category name
Hi everyone, I have been at this issue for a while and I am yet to find a solution. Our system is set up where one of the CATEGORY options is "Email & Phone". However, If I attempt to make a ADD or EDIT Request with that as the CATEGORY name I am given an error. I was using JSON as a format so I tried JSON specific escape characters which did not fix it. I also tried XML as a format and used "&" to replace "&" but I still received an error. Any help would be much appreciated.
Anyone know if its possible to get tickets that are open for a asset thorugh API?
Does anyone know if its possible to get the open tickets for a given asset through API? i'm wanting to create a little dashboard for my team that shows up when tickets are open for some assets. Currently we have to browse to assets, find the asset, then view requests to see them. I'm hoping to just pull back how many open tickets there are for a given asset as shown in pic below.
How come are the POST requests being sent without a body, and send parameters as query strings in URL?
Hi, AFAIK, The parameters of a POST http request will be wrapped and sent in the request's body (in json format or form-data format) not as quey strings in the URL (like what we have in GET requests). I'm curious how do some of OPManager's API URLs work, as their method are POST, but still they have all required parameters in their URL, and nothing is mentioened to be implemented as the patrameters in the POST's body. An example would be: addServiceMonitor (POST) : http://localhost:8060/api/json/admin/addServiceMonitor?apiKey=081c9ac51ba16ab061d5efee583dcd2f&autoDiscovery=false&serviceName=test2&portNumber=119&timeOut=5&failureThreshold=1
[SOLVED] API Return custom Field
How can i return the info in a custom field? <API version='1.0' locale='en'> <criterias> <criteria> <parameter> <name compOperator='IS'>CI Name</name> <value>ComputerName</value> </parameter> </criteria> </criterias> <returnparameters> <name>Custom field</name> </returnparameters> </API> "@
[SOLVED] Last Updated Time via API
I can't find a way to retrieve a request's last updated time via the API. IT seems like a pretty important field when using the API for a case exchange between two systems. Is there a way to retrieve this?
[SOLVED] I need to make a API Request to assets and get info
I want to make a API call to get asset info. The info I need are attached below:
[SOLVED] API-response error
Hi, I'm writing a script to update certain fields in Windows workstation CI's. I got it working on our development server running SDP 9425 but i get an error when running it on our production server with SDP 9335. Is there a workaround to get around the error on 9335? I need the script working asap, and we haven't scheduled an update for SDP until next yer. On 9335 i get this API response: {"API":{"response":{"operation":{"result":{"message":"java.sql.SQLException: The data types ntext and nvarchar
[SOLVED] Search for a specific Request using the API
I would like to make a call using the API and return a specific ticket by filtering on several categories. I think it is possible or almost possible but I am slightly hung up. My problem is that the documentation says to "Get all requests" I should use a Get method, but in the documentation also tells me to send input_data in json to specify my search parameters but if I do that I would have to send a POST or a PUT. Here is what I have: in Powershell Invoke-RestMethod -uri [URL/api/v3/requests] -headers
Help with API Attachments + Powershell
Hi All- For the life of me I can't get attachments into a ticket via API. I can do it with Postman and can create other request with API just not attachments. I keep running into responses that there is no file being upload. Does anyone have a working Powershell example I can check out? Thanks in advance for any help!
[SOLVED] API v3 JSON and Powershell
Does anyone know how to give JSON input to the v3 API and have it work? I've been bashing my head against the wall all day. $inputData = @" { "operation": { "details": { "resolution": { "resolutiontext": "Test text here." } } } } "@ $inputData = $inputData | ConvertTo-Json -Depth 50 $postparams = @{OPERATION_NAME='ADD_RESOLUTION';TECHNICIAN_KEY=$apikey;INPUT_DATA=$inputData;FORMAT='JSON'} Invoke-RestMethod -Uri "$URI/api/v3/requests/498420/resolutions" -Method POST -Body $postparams -ContentType
New requester creation using Powershell and API
Hello, I'm looking to use a Powershell script & the ServiceDesk Plus Ondemand API to create a new requester and wanted to ask the community if anyone had one already that I could look at so I'm not recreating the wheel. Thank you
API. Add second email to notify technician (ADD_REQUEST)
Is there are way to add second email to notify technician that he is responsible for just created request, and do it all in one ADD_REQUEST operation?
API. Adding "Email id to notify" (emailcc) in ADD_REQUEST operation
Hi. I have issue with a simple thing. When I try to add emailcc in request (ADD_REQUEST) to SD API, API won't adding it (maybe just ignore this parameter). But with other parameters (even costume), I don't have this problem.
Edit Request using Rest API
I'm unable to edit requests using the Rest API and Im not sure what Im doing wrong. I have some custom fields Im trying to update. I'm using the below Powershell code to process it. function Edit-Request { [CmdletBinding()] param ( [Parameter(Mandatory=$true, ValueFromPipelineByPropertyName=$true, Position=0)] [alias ("id")] [Int32] $RequestID, [Parameter(Mandatory=$true, ValueFromPipelineByPropertyName=$true, Position=2)] [String] $ApiKey, [Parameter(Mandatory=$true, ValueFromPipelineByPropertyName=$true,
Rest api sometimes asks for login credentials/redirect to login page for Add Request operation.
The first time the page is loaded in a browser it redirects to login screen instead of sending the AddRequest operation. Any idea how to fix this? Thank you, E.L.
Update Virtual machine host using api
Would like to know how to update the field (Is Virtual Machine) under Server using api. I tried this but not work. Thanks <parameter><name>IS VIRTUAL MACHINE</name><value>true</value></parameter><parameter><name>HOST</name><value>machine</value></parameter>
Desktop Central API Question
Is the desktop central msp REST api accessible for get / post queries ? I dont use service desk. Version 10.0.297
Next Page