Can we Use UserId name in system property as a value?

sattar3
Tera Contributor

Hello All,

 

I created a system property in that i copied the userid as a Value.

and I used the system property in Business Rule and it is working fine.

Will it cause any issue in future? please help me on this.

 

@Ankur Bawiskar @SANDEEP28 

 

Thanks,

Abdul.

7 REPLIES 7

Sumanth16
Kilo Patron

Hi @sattar3 ,

 

There won't be any problem if you store only one user ID in (or) multiple values (like sys_ids, queries)in the system property.

 

Note: But make sure not to update system property continuously from your script. Enable the "cache" check box on the System property.

 

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,
Sumanth Meda

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

You can do such. Question is more, what do you want to do with it? Is it a good approach for that usage or are there other (out-of-the-box) alternatives. Since you didn't share any details, we can only mention "yes could work".

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

@Mark Roethof Thanks for the reply.

We need to populate the called_id and opened_by in the incident with the Business Rule.

That's why i used the UsedID in the system property.

 

Please let me know if it is fine?

 

Thanks

 

Sure that can work. Though still not reading anything why you should do this. What will this save you? What is your reason behind doing this?

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn