Jump to content

PriyabrataSethi

Members
  • Content count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About PriyabrataSethi

  • Rank
    Newbie
  1. Hello All, I am trying to get the CI details and change the status using PS. But i am missing something I guess. I am not aware of the product. I am just trying to get the details. sid = $ws.login($username, $password) $ci = $ws.doquery( $sid, "nr", "name = AssetName") Above is the code to start with doquery . Can anyone assist me. Regards
  2. Creating and closing Change Orders with PowerShell

    Thanks All, All the inputs has helped me a lot.
  3. Creating and closing Change Orders with PowerShell

    Hi Diverso, I know its a very old post and I have been following it to write the script again to suit my environment. Can you please guide me how did you get the $attributes . I tried getting the help command for createChangeOrder() but could not get much info. I just want to create a plain Change order without any customized field section. Thanks.
  4. Create a Change Order using Powershell

    Thanks cdtj, I have encountered another error after resolving the previous one. Exception calling "createChangeOrder" with "8" argument(s): "api.spl:1198:api::update_object Arg mismatch in printf or scanf" At C:\Temp\SDMWithTableDefn.ps1:110 char:1 + $createchange = $svc.createChangeOrder($sid, $CreaterHandle, $attributes, $prop, ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : SoapException Can you please guide me. Regards
  5. createChangeOrder - Powershell with WebProxy

    Hello , I am trying to Run the script which you have mentioned. I am struggling to execute it. Can you please let me know what are these guids you are referring to . $attrVals = "summary", "A new change order", "description", "new change order","category", "6102", "active", 1, "affected_contact", "C829C2FCE01BDA48BDCACE4A04798DBC", "requestor", "C829C2FCE01BDA48BDCACE4A04798DBC" Regards.
  6. Hello All, I am new to the product. Current task is to create a Change Order and close it after a period of time. I have been following a the documents to find out a table structure which I can follow and get create a change order. Unfortunately has not worked for me much . Followed link from this Forum . Seems the code is breaking in between . Exception calling "createChangeOrder" with "8" argument(s): "Error setting attr 'z_chg_desc' on object 'chg:1279319' to value '' AHD03066:Unknown name z_chg_desc" At C:\test\test.ps1:77 char:1 + $createchange = $svc.createChangeOrder($sid, $CreaterHandle, $attributes, $prop, ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : SoapException can anyone pls guide me on this. I have almost pulled all my hairs
×