R

rtx-addservicedata

RTx-AddServiceData

RTx-AddServiceData:

Adding ticket meta data from webservices

Please combine this Action with an template with following code:

Template Example:

- Queries the URL with the parameter configured
- Iterate through the results
- Add for each row a new requestor with email in hash

{
	Type => 'AddRequestors',
	
	Field => 'email',

	RequestModule => 'RTx::AddServiceData::HTTPRequest',

	RequestConfig => {
  		uri => 'http://localhost:10088/iddp/data/db/idoit.owner/rest?q=isys_obj__sysid="__CustomField(SysID)__"&connection=__QueueName__'
	},

	ParserModule => 'RTx::AddServiceData::RESTParser'

}

Adding a CustomFieldValue

{
	Type => 'AddCustomFieldValue',
	
	Field => 'accounts_id',
	CustomField => 'client',

	RequestModule => 'RTx::AddServiceData::HTTPRequest',

	RequestConfig => {
  		uri => 'http://localhost:10088/iddp/data/db/sugarcrm.contacts/rest?q=email_address="__RequestorAddresses__"',
  		user => 'testuser',
  		pass => 'testuser'
	},

	ParserModule => 'RTx::AddServiceData::RESTParser'

}

Allowed replace strings:

__CustomField(<NAME>)__
__QueueName__
__RequestorAddresses__

(All other implementations of RT::Ticket -> __<METHOD>__)