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
New-FreshserviceSolutionArticle will create a Solution Article with specified attachment(s).
Current Behavior
Error message from API:
| {"description":"Validation failed","errors":[{"field":"tags","message":"The value provided is of type
| String.It should be of type Array","code":"datatype_mismatch"},{"field":"keywords","message":"The value
| provided is of type String.It should be of type Array","code":"datatype_mismatch"}]}
Appears to be an issue with data being passed as multipart/form-data.
Possible Solution
As a workaround, create Solution Article without attachment(s) and then use Set-FreshSolutionArticle to attach items.
Steps to Reproduce (for bugs)
Create a new Solution Article and specify the path to a file with -attachments:
$newArticleParams = @{
title = 'My Other New Solution Article'
description = 'This is how you fix stuff'
folder_id = 21000036165
status = 1
attachments = 'C:\Scripts\Attachments\error.png'
keywords = 'Attachment'
tags = 'Attachment'
}
New-FSSolutionArticle @newArticleParams
Execute command and API produces:
| {"description":"Validation failed","errors":[{"field":"tags","message":"The value provided is of type
| String.It should be of type Array","code":"datatype_mismatch"},{"field":"keywords","message":"The value
| provided is of type String.It should be of type Array","code":"datatype_mismatch"}]}
Context
Cannot create Freshservice Solution Article with attachments.
Your Environment
Module version used: 0.1.4
Operating System and PowerShell version: Windows 11 with Powershell 7.3.4
The text was updated successfully, but these errors were encountered:
Expected Behavior
New-FreshserviceSolutionArticle will create a Solution Article with specified attachment(s).
Current Behavior
Error message from API:
Appears to be an issue with data being passed as multipart/form-data.
Possible Solution
As a workaround, create Solution Article without attachment(s) and then use Set-FreshSolutionArticle to attach items.
Steps to Reproduce (for bugs)
Context
Cannot create Freshservice Solution Article with attachments.
Your Environment
The text was updated successfully, but these errors were encountered: