Soap message getRecords

traviswarren
Kilo Expert

Hello, Is there a way to insert or update data in your instance from a getRecords function call.   Essentially, instead of the source instance sending data to the target instance I want to pull in data to the target instance from the source. To provide an example. I have a soap message from the target instance pointing to the source instance.   I have a getRecords method setup to retrieve records from the parameters I specified.   From that response, can I insert that data into my target instance? Thanks in advance.

6 REPLIES 6

ghaing
Giga Expert

Hi,


Yes you can use insertMultiple operation that takes the getRecords result as parameter:


see here: http://wiki.servicenow.com/index.php?title=Web_Service_Insert_Multiple_Plugin#Inserting_Multiple_Rec...



Regards,


At the moment I have a soap outbound message doing a getRecords function, retrieving records in the response. From my understanding, the insert and insertMultiple will create records to the instance provided in my WSDL.   What I am attempting to achieve is getRecords from the instance provided in my WSDL and insert them into my current instance. I also installed the insetMultiple plugin but can not find where the method is used on a soap message outbound. Can you lead me to the right location within SN if this is still possible?


Hi,


You can also create un inbound web service in your target instance with a transform map to set your rules, and a outbound one in your source instance that takes as adress the Inbound Web   service.


Regards,


This solution will not achieve my goal.   Your recommendation states that I create an inbound web service on the target instance and an outbound web service on the source.   This limits me to getting records in the target when the source pushes data to the target. My goal is to have the target getRecords from the source and apply updates or insert records into the target.   I would like to get records from the source scheduled by the target and not when the Source decided to push data to the Target.   I do not want to rely on the Source's configuration and have all the control from the target. Hopefully this clears things up. Thanks for the assistance.