You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to set the end-of-life field but the module does not accept the parameter -end_of_life. I want to do: Set-FreshServiceAsset -display_id "15" -end_of_life "2029-01-01"
Current Behavior
In the code on the github page, it is listed as a parameter and the Get/Set-FreshServiceAsset response lists the end-of-life field. If you currently call it with the -end_of_life flag it says it does not accept this parameter.
Possible Solution
Steps to Reproduce (for bugs)
Import the FreshservicePS Module
Connect to the Freshservice API using the module
Obtain a valid display_id for an asset in your Freshservice instance
Use the following code: Set-FreshServiceAsset -display_id "15" -end_of_life "2029-01-01"
Receive the following error: Set-FreshServiceAsset : A parameter cannot be found that matches parameter name 'end_of_life'.
Context
I am creating a script that is automating our hardware provisioning. When we receive a new computer, I want to run this script and set several fields, one of them being the end-of-life based on our refresh policy. I currently have the asset state, name, location, and user assigned to it the last field I need is eol.
Your Environment
Module version used: 0.1.6
Operating System and PowerShell version: Win 11 23H2 and PSVersion 5.1.22621.39
The text was updated successfully, but these errors were encountered:
Expected Behavior
I am trying to set the end-of-life field but the module does not accept the parameter -end_of_life. I want to do: Set-FreshServiceAsset -display_id "15" -end_of_life "2029-01-01"
Current Behavior
In the code on the github page, it is listed as a parameter and the Get/Set-FreshServiceAsset response lists the end-of-life field. If you currently call it with the -end_of_life flag it says it does not accept this parameter.
Possible Solution
Steps to Reproduce (for bugs)
Context
I am creating a script that is automating our hardware provisioning. When we receive a new computer, I want to run this script and set several fields, one of them being the end-of-life based on our refresh policy. I currently have the asset state, name, location, and user assigned to it the last field I need is eol.
Your Environment
The text was updated successfully, but these errors were encountered: