Server side : get value from "current.value" which is passed as string

JayaPrakash4
Tera Contributor

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 :

So is it possible to get output as "INC0010001" when passed gr.u_localfield ?

Any help is very much appreciated.

Thanks.

5 REPLIES 5

Uncle Rob
Kilo Patron

I'm having a really difficult time understanding the question.


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


Gowrisankar Sat
Tera Guru

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.



Web service import sets


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