Jaspal Singh
Mega Patron

Hi Alon,

Can you try replacing

gs.setRedirect() with action.setRedirectURL('/sys_attachment.do?sys_id=2522a51393c30210b73aba7efaba105a')

@Jaspal Singh i tried its not working

SanjivMeher
Mega Patron

I think you may need to full URL. Can you try below

var url = gs.generateURL('sys_attachment', gr.sys_id);

gs.setRedirect(url);


Please mark this response as correct or helpful if it assisted you with your question.

@SanjivMeher still not working

Can you provide the full script you have now after making the changes?

Can you add a gs.addInfoMessage to check whats going on?

Do you have attachment in the attachment table in that record?

Also can you provide the use case you want to achieve? Non-admin users mayn't have access to the sys_attachment table.


Please mark this response as correct or helpful if it assisted you with your question.