Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Attachment to 'sc_task' Table Not Working #160

Closed
natescherer opened this issue Oct 18, 2021 · 0 comments · Fixed by #161
Closed

Adding Attachment to 'sc_task' Table Not Working #160

natescherer opened this issue Oct 18, 2021 · 0 comments · Fixed by #161

Comments

@natescherer
Copy link
Contributor

natescherer commented Oct 18, 2021

Environment

Operating System: Windows 10
ServiceNow module version: 3.1.1
PowerShell version: Windows PowerShell 5.1

Steps to reproduce

Try to add an attachment to a catalog task in table "sc_task"

Expected behavior

Attachment is added

Actual behavior

Attachment is added to table "Catalog Task" which is not valid for our environment.


I've developed a PR that should fix this, will link shortly. Basically, it appears that for our environment, adding an attachment to the "sc_task" table fails because the new auto-table-recognition code tries to add it using the "sys_class_name" which is "Catalog Task" and does not work in our environment.

I.E it was doing https://instance.service-now.com/api/now/attachment/file?table_name=Catalog Task instead of table_name=sc_task

The PR will basically just use the Table name parameter that is passed in, if present, rather than trying to do the automatic table recognition.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant