# adminus_crm_upload_files

Name adminus_crm_upload_files
Type callback
Version 1.0
Since 2020-01-01

# Prologue

Gets files ids and customer id from given input variables, load their data and update/upload files in CRM. Received data from CRM are given to output variable if variable is set.

# Configuration

events:

	# Event's name
	on_step_end:

		# Callback's name
		adminus_crm_upload_files:
			config:

				# Required
				# LPL support
				# Variable containing API connection with user credentials as DSN string
				# For example: https://user:pass@crm.ispalliance.cz/api/
				connection: "'https://username:password@host'"


				# required variable
				# customer id from CRM
				customerId: "crm_customer_id"

				# required variable
				# name of the variable which provides ids of files
				variable:  "customer_documents"

				# optional variable with default value null
				# name of json result variable where is the stored result of api requests.
				# json contains objects with keys fileId(id of file in lotus), upload(result of upload file to crm), update(result of update file records in CRM)
				result: "upload_result"

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29