Pass a url type field value

Cirrus
Kilo Sage

Hi,

Doesnt anyone know how to get/pass the value of a url type field in a business rule?

We have a field in a task table called u_link. The user will enter say www.com in that field, and when the task is closed complete we want to copy that value into a new record using an after business rule.

 

var value = current.u_link returns undefined

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Cirrus 

it should be simply this

gr.urlField = current.u_link;

what it set? any error?

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
Tera Patron
Tera Patron

@Cirrus 

any before insert/update BR is clearing that url field or having some validation?

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

Vrushali  Kolte
Mega Sage

Hi @Cirrus ,

 

I tried to replicate the same use case in my PDI, and it worked for me by simply using current.u_url;. However, please ensure that you are using the correct field name(column name), as an incorrect one may result in an undefined value.
 
If my answer solves your issue, please mark it as Accepted✔️ & Helpful👍!