SFTP Step (Flow Action): Copy Files To This Instance

pjftenorio
Tera Expert

Hello,

I'm trying to implement a flow action which contains a SFTP step. I want to get a file from a SFTP server and copy it to my servicenow instance (create an attachment in RITM record).

pjftenorio_0-1732013636974.png

 

I think that there is already no issue in credentials, etc. But when I check the output it displays:

[{"file_name":"tpw_feed_it.txt","error":"Error creating Attachment tpw_feed_it.txt : Method failed: (/api/now/v1/attachment/file) with code: 403 - Forbidd"}]

 

I tried to add ACL for sc_req_item table (RITM) for read and write with "mid_server" role.

pjftenorio_2-1732013804939.pngpjftenorio_3-1732013815659.png

Is there any configurations I missed?

2 ACCEPTED SOLUTIONS

pjftenorio
Tera Expert

I was able to achieve the solution on this. 

MID server user should have role "admin"

View solution in original post

paultenorio
Tera Expert

Another solution was to add sn_request_write role to Mid Server User if you don't want to give admin access to the MID

View solution in original post

3 REPLIES 3

pjftenorio
Tera Expert

I also tried to update the properties of the .txt file from 0640 to 0777 but that still does not let me copy the file to the RITM record.

pjftenorio
Tera Expert

I was able to achieve the solution on this. 

MID server user should have role "admin"

paultenorio
Tera Expert

Another solution was to add sn_request_write role to Mid Server User if you don't want to give admin access to the MID