Send HR Case Attachments to HR Task easily

Rob Sestito
Mega Sage

Hey there SN Comm!

I am looking to see if anyone knows a good way to develop a UI Action (possibly), that can basically do the following:

Take attachment(s) from HR Case, and move them to the HR Task (when needed).

While this is not a huge deal, our Employee Resource Center Reps, are having to open attachments from the HR Case form, save them to their computer, and then when they create the HR Task, they will then manually add them to the Task. Again, this is not a huge deal - we're just looking to save a little time/mouse clicks.

if anyone knows of something/has ideas, please share!

Thanks all!!

-Rob

1 ACCEPTED SOLUTION

GlideSysAttachment is not available client side. I'm not sure what the person above suggested that. Try it without client.

View solution in original post

13 REPLIES 13

dvp
Mega Sage
Mega Sage

Try this in server side UI action

	GlideSysAttachment.copy(current.parent.sys_class_name, current.parent, current.getTableName(), current.sys_id);

 

Hey dvp,

Thanks for coming over to my post to lend a hand.

I added your script to the client side UI Action, but I am having no luck.

find_real_file.png

Any other ideas?

Thanks so much!

-Rob

GlideSysAttachment is not available client side. I'm not sure what the person above suggested that. Try it without client.

Yup - unreal! That was it... just needed to not be Client Side!

Thanks Chuck!

As Chuck suggested set client field to false