Highlighted
Honored Contributor.
Honored Contributor.
265 views

task attachment via Web Service

Hi,

i am a Service Manager external user through Web Services .

In order to allow my application attaching some files to an SM Incident Task, a WS called "UpdateIncidentTask" was given to me.

In this WS, i have been informed that the following fields have to be filled as follows, in order to get the expected result:

UpdateIncidentTaskRequest.model.instance.TaskID : the ID of the IM Task, eg IM100000-001

UpdateIncidentTask_Request.model.instance.attachments.attachment0.href: The BASE64 code of the file to attach. 

UpdateIncidentTask_Request.model.instance.attachments.attachment0.name :  file.txt

UpdateIncidentTask_Request.model.instance.attachments.attachment0.type: application/octet-stream

UpdateIncidentTask_Request.model.instance.attachments.attachment0.action : add

 

But it still not working.

Could someone help me please.

Regards; 

 
 
0 Likes
2 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: task attachment via Web Service

Hello Adel,
Thanks for your question.

Since you did not clarified your current SM Version, I am sharing a Web Services Guide for SM 9.30.
Please review it to learn if you request can be done.

SM Web Services Best Practices

BR!

If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution. If you are satisfied with anyone’s response please remember to give them a LIKE by clicking on the Thumb and show your appreciation.
0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: task attachment via Web Service

Hi, 

Thanks Jose for you answer and for the document. 

For the version,  our SM team told me that it is 9.41. 

Really,  i am not an SM developer or administrator,  i am an external user,  and as you know,  in SM when we have an incident that has a task for example IM1000-001,  all we know that using our mouse we can attach a file to this task,  but my question is : how to do this by WS ? I have a task and i have a file text,  how to attach this file to that task by WS ? 

Regards

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.