c

dynamics.cli

LoadAddressesActions

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.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LoadAddressesActions
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LoadAddressesActions(context: DynamicsContext)

Value Members

  1. def clean(instring: String): String
  2. val context: DynamicsContext
  3. 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

  4. val ehandler: ApplicativeError[IO, Throwable]
  5. def insertAddress(payload: String): IO[String]
  6. 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|...

  7. 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.

  8. def updateAddress(parentId: String, addressNumber: Int, payload: String): IO[String]
  9. def xform(params: Map[String, String]): (Object) ⇒ Object