'Save as attachment' check box not working in REST step in flow designer action

Sudhangshu Das
Tera Contributor

Hi all,

 

I want to save an attachment from the REST step by checking true on the 'Save as attachment' checkbox. I am passing the attachment details, but in the flow execution, I am only seeing one error message.

 

--->>>   Error encountered while creating Attachment. Error creating Attachment <attachment_name> : Method failed: (/api/now/v1/attachment/file) with code: 403 - Forbidden username/password combo with reason: User not authorized   .....>>>>

 

I think this is an ACL issue, but I have the ACL created, and have the necessary conditions in the script. But, I have put a log statement at the top of the script, and it seems like even the script isn't executing when I'm trying to add an attachment from this method.

 

Can someone please help?

 

 

Thanks & Regards,

Sudhangshu

3 REPLIES 3

Sujatha V M
Kilo Patron
Kilo Patron

@Sudhangshu Das  I have come across the same error during REST step and have followed the below steps, 

 

# HTTP Error: 403 - Forbidden Username/Password

 https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0720934

 

Solution: User - Agent header updated as “ServiceNow” instead of “servicenow”

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

Hi @Sujatha V M ,

 

Thanks for your response!

 

Actually the action that we are using here is an out of the box action which comes with the Jira Spoke plugin. So not sure, if we can make any changes in that.

We have raised a case with the ServiceNow team for the same. If we don't find any suitable solution, we'll have to create something custom and there we can use the header as suggested by you.

 

Thanks & Regards,

Sudhangshu

Mark Manders
Mega Patron

Can you login with the credentials to see if it's not really a username/password issue? 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark