class LoadAddressesActions extends AnyRef
Loading addresses requires that the input is json with all the attributes set. The only requirement is that parentid is sets in the input data source and it should be remove, along with any other non-modelled attributes using the etl CLI parameters.
- Alphabetic
- By Inheritance
- LoadAddressesActions
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new LoadAddressesActions(context: DynamicsContext)
Value Members
- def clean(instring: String): String
- val context: DynamicsContext
-
def
dbStream(query: String, dbConfigFile: String): Stream[IO, Nothing]
Create a stream from a json array file source.
Create a stream from a json array file source. ...whoops...this does it from MSSQL...change this
- val ehandler: ApplicativeError[IO, Throwable]
- def insertAddress(payload: String): IO[String]
-
val
loadAddresses: Action
Load source side account "location" correctly.
Load source side account "location" correctly. First 2 addresses should map to pre-existing addressnumber 1 and 2 and hence should be updates and not inserts. Data should be sorted by crm accountid then sorted by whatever makes the address you want for 1 and 2 appear at the start of the group.
objecttypecode is a string! not a number for this entity: account|contact|...
-
def
parentBind(entityName: String): (Object) ⇒ Object
Assumes parentid holds id.
Assumes parentid holds id. Mutates record. Not currently used as its assumed that @odata.bind is in the data stream already.
- def updateAddress(parentId: String, addressNumber: Int, payload: String): IO[String]
- def xform(params: Map[String, String]): (Object) ⇒ Object