setValue(String name, Object value) Sets the specified field to the specified value. Normally a script would do a direct assignment, for example, gr.category = value . However, if in a script the element name is a variable, then gr.setValue(elementName, value) can be used. When setting a value, ensure the data type of the field matches the data type of the value you enter. This method cannot be used on journal fields. If the value parameter is null, the record is not updated, and an error is not thrown https://developer.servicenow.com/app.do#!/api_doc?v=madrid&id=r_GlideRecord-setValue_String_Object
Some rough notes I took on running a transform asynch... Import set needs to be set to mode=asynch Look at the business rules for the sys_import_set and sys_import_set_row tables. This is where the mode of synchronous is set when it's from SOAP, otherwise uses the default attribute value of asynchronous. With some modifications or additional rules for specific import set tables as conditions you could set the mode before insert based on the target import set table. I'm not sure I follow when/how you were trying to run this code, but how about a BEFORE INSERT business rule that sets the mode? Name: Set Mode to Asynchronous Condition: 1. current.data_source.name == 'My Data Source' When: Before Insert: True 1. current.mode = 'asynchronous'; schedule transformation take a look at Asynchronous Import Set Transformer Follow following steps for scedule load: 1. Activate "Asynchronous Import Set Tr
Comments
Post a comment