Get All Disposed Asset Using Python Script

Get All Disposed Asset Using Python Script

Steps to use the provided script:

  1. Replace the URL variable with your API endpoint and set the api_key variable.
  2. Customize the input_data dictionary with your desired parameters.
  3. Replace the Portalid variable with the required portalID according to your specific requirements.
  4. Run the script. (python scriptname.py)
  5. Wait for the script to retrieve all the data from the API.
  6. Check the output for any errors or exceptions.
  7. If successful, a file named "Disposed_Asset.xlsx" will be created with the retrieved data.


                  New to ADSelfService Plus?

                    • Related Articles

                    • Update status using Python script in 11.0

                      Using a Python script via custom trigger, we can update the status invoking an API call. A short guide on setting up python is available here : https://pitstop.manageengine.com/portal/kb/articles/how-to-setup-python-on-the-server Find the attached ...
                    • Create New request using Python Script

                      Script to raise a new request using Python Script. Pre-requisite - Python should be installed in the server and configured. You can review the instructions here - Requests module should be installed with the python Steps 1. Download the zip file from ...
                    • Request add attachment_Python script-API

                      Steps for adding attachment to the request through python script-API. Extract the attached  "Attachment_Python_Script.zip" >> Edit attachmentscript.py >>Mention product installed url in the base url ; update the api key; update the request id that ...
                    • Python script to automate FCR

                      Please find the attached Python script on this link  to automate FCR via custom trigger when the request is created and resolved by the same technician. The link contains two Python scripts with the name FCR.py (this script can be used when MSP is ...
                    • Error - Can't find a default Python

                      In version 10.6 and above when creating a Custom Trigger  you will need to paste a .txt file in the  Executor path as shown below instead of entering the scripts name there.  To create a txt file you need to path to => ManageEngine\Service ...