'Save as attachment' check box not working in REST step in flow designer action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2024 11:41 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2024 01:57 AM
@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.
Sujatha V.M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 08:59 PM
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 as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2024 02:03 AM
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