Jump to content

Search the Community

Showing results for tags 'powershell'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • CA Service Desk Manager
    • General Discussions
    • Customizations / Modifications
    • Bugs / Errors / Patches
    • Knowledge Tools / Keyword Search
    • Support Automation
    • CMDB
    • Install / Migrate / Configure
    • Product Integration
    • Reporting
    • Workflow
  • Nimsoft Service Desk
    • General
  • General
    • Wiki Article Discussions
    • ITIL & Best Practices
    • Speak Out
    • Employment Opportunities


  • Getting Started
  • Installation
  • Configuration
  • Customization
  • Integration
    • CA Applications
    • Non-CA Applications
    • Custom Integrations
  • Reporting
  • Miscellaneous

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







Found 3 results

  1. I have been successfully creating tickets in CA Service Desk using Powershell for a couple years now, but I have been tasked with figuring out how to add an attachment to the ticket. They way I am doing it currently is, once I have the $accesskey: $URIString = "http://$servername:8050/caisd-rest/cr" $headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]" $headers.Add("X-AccessKey", $accesskey) $headers.Add("Accept", "application/xml") $headers.Add("Content-Type", "application/xml; charset=UTF-8") $headers.Add("X-Obj-Attrs" , "ref_num") $body = "<cr><group COMMON_NAME=`"Security Admin`"/><summary>`"Test Ticket - Please Ignore`"</summary><requested_by COMMON_NAME=`"AutomationReview, UserAccess`"/><customer COMMON_NAME=`"AutomationReview, UserAccess`"/><description>`"Test Ticket - Please Ignore`"</description></cr>" $b = Invoke-RestMethod -Method POST -Uri $UriString -Headers $headers -body $body This works great, but I can't figure out how to add an attachment. I tried adding "<attachment>`"C:\temp\empID.txt`"</attachment>" to the middle of the body, and while that didn't throw any errors, it didn't seem to do anything. Can anyone point me in the right direction?
  2. I am in the early process of writing a powershell module with cmdlets for CA Service Desk Manager. How do I get a list of available change categories? That is what I am doing wrong, yes? $Username = "myuser" $Password = "xxxxxxx" $url = "http://xxxxxxxxx:8080/axis/services/USD_R11_WebService?wsdl" $webservicex = New-WebServiceProxy -Uri $url -namespace WebServiceProxy -Class USD_WebServiceSoap $SID = $webservicex.login($Username, $Password) $attrVals = "summary", "A new change order", "description", "new change order","catagory", "chgcat:400001" [string]$x = "" [string]$y = "" # createChangeOrder( int sid, String creatorHandle, ArrayOfString attrVals, ArrayOfString propertyValues, String template, ArrayOfString attributes, StringHolder newChangeHandle, StringHolder newChangeNumber) $webservicex.createChangeOrder($SID, $($webservicex.getHandleForUserid($SID,"myuser")), $attrVals, "", "", "", [ref]$x, [ref]$y) Exception calling "createChangeOrder" with "8" argument(s): "Error setting attr 'catagory' on object 'chg:408430' to value 'chgcat:400001' AHD03066:Unknown name catagory" At line:15 char:43 + ... der($SID, $($webservicex.getHandleForUserid($SID,"muser")), $attr ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : SoapException
  3. Previous post (2008) Has anybody solved this for powershell ? Add-type -Path 'C:\Microsoft.Web.Services2.dll' $att = New-Object Microsoft.Web.Services2.Dime.DimeAttachment("message/rfc822","MediaType","c\test.txt") $soapcontext.Attachments.Add($att) where att is ChunkSize : 2147483647 TypeFormat : MediaType Id : uuid:db140212-48b8-473c-aecb-2740bf9e68df ContentType : message/rfc822 Stream : System.IO.FileStream but how do I define the soapcontext for powershell there is context against new-object Microsoft.Web.Services2.WebServicesClientProtocol($ws) I am currently using maileater but it is a bit hit and miss.
  • Create New...