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:08 AM
I'm having a really difficult time understanding the question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2018 07:16 AM
Var x = current.number;
var y = "current.number";
gs.addInfoMessage(x); // output : "INC0010001" // where output of x will be "INC001...." when current.number is selected on Business rule of Incident.
gs.addInfoMessage(y); // output : "current.number" // Here I need output to be "INC0010001" when passed y. Is there any possibility to achieve it

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2018 07:23 AM
Hi Jason,
It seems you are trying to query table where the mappings for each field are stored, which I assume is a custom table.
As per my knowledge you have to use value in mapping field in source table and update the record in target table, which can be easily achieved by import sets for web services.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2018 07:30 AM
Hey Gowrisankar,
That would work in import set when trying to do Inbound.
But I am trying to use it in a different scenario when creating outbound message.
I appreciate your prompt reply
Thanks