The link is too large on workspace

MEZ1
Tera Contributor

Hello all,

 

I created a Business rule to set the value of URL filed on workspace application.

My client said, the link is too large, and ask if it is possible de show freindly user link ?

Thank you in advance for your propositions!

 

The 

MEZ1_0-1741036286281.png

 

1 ACCEPTED SOLUTION

@MEZ1 

it did work for me.

For you is that a form view shown in portal?

url field workspace.gif

or else see this

Enable tiny URL support 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@MEZ1 

you can enter the relative URL inside that starting with so that it becomes shorter

please share the business rule script.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hello Ankur,

I d'ont understand your response.

 

MEZ1_0-1741078904285.png

 

 

@MEZ1 

use this and shorten the URL, you can use relative URL

try this and see how it looks

var url = '/' + table + '.do?sys_id=' + current.getUniqueValue() + view;

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 

I did, but the result is record not found when I click on link

MEZ1_0-1741080918216.png

On workspace I have this short link:

MEZ1_1-1741080979273.png

 

For your information, the type of the field "u_pieces_jointes" is URL