Server side : get value from "current.value" which is passed as string
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2018 06:21 AM
Hey,
I am trying to map soap fields which are stores as record values in a table.
So I wanted to know if its possible to get "current.value" which is passed as string from table record.
Ex :
Var x = current.number; // where x will be "INC0010001" etc...
but I have requirement to pass as follows:
var gr = new GlideRecord("u_integrationmapingfields");
gr.query();
while (gr.next()) {
gs.addInfoMessage(gr.u_localfield ); // Here I need output as "INC0010001", instead its giving me output as "current.caller_id"
}
Record of u_integrationmapingfields will be as follows :
ActiveSort | IntegrationTypeSort | LocalFieldSort | TargetFieldSort | |||
---|---|---|---|---|---|---|
Preview | true | TestIntegration | current.caller_id | caller_id | ||
Preview | true | TestIntegration | current.short_description | short_description |
So is it possible to get output as "INC0010001" when passed gr.u_localfield ?
Any help is very much appreciated.
Thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2018 07:51 AM
Oh, I see... You wanted to convert a value in the field to a current object. Let me check...