Hello,
I want to get all attachments of a ticket/incident/...
Therefore I'm calling
api/filestorage/{entity}/{objectid}/{bindattribute}?excludedfileids={excludedfileids}
But I'm struggling with the parameters:
{entity}: is this the name of the ticket/incident _type_? (e.g. 'SPSActivityTypeIncident')
{objectId}: is this the ID property of a ticket/incident/...?
{bindAttribute}: what's that? I don't understand the description "The name of the attribute the data belongs to.": can someone give me a hint?
The excludedfileids will get obvious as soon as I get a response, I guess.
Can someone help me with the parameters?
Thank you and
Best regards,
Rolf
How to get attachments of a ticket by API
-
- Posts: 7
- Joined: 30. Mar 2023, 15:18
- Contact:
-
- Posts: 7
- Joined: 30. Mar 2023, 15:18
- Contact:
Re: How to get attachments of a ticket by API
It was my own stupidity:
{entity} is indeed the type name like SPSActivityTypeIncident, {objectId} is e.g. the ticket GUID, and {bindAttribute} was not necessary.
My fault was to use invoke-webrequest in PowerShell instead of Invok-RestMethod...
BR
Rolf
{entity} is indeed the type name like SPSActivityTypeIncident, {objectId} is e.g. the ticket GUID, and {bindAttribute} was not necessary.
My fault was to use invoke-webrequest in PowerShell instead of Invok-RestMethod...
BR
Rolf
Who is online
Users browsing this forum: No registered users and 2 guests