Project file:C:\Users\Demo\Desktop\TechForum2017 Mappningar\CRUD_Update.EDS
Date and time for documentation: den 1 december 2017 16:04

SOURCE file
File type: JSON
TARGET file
File type: SQL

element: Order

Container typeNameData typeMapping
element (_value_)SenderSingle occurance
elementArticlesMax occurrences (99999) : complex typeSQL.Article

element: Articles

Parent: Order
Container typeNameData typeMapping
element (_value_)ArticleNrSingle occuranceSQL.Article.Id
element (_value_)quantitySingle occuranceSQL.Article.Quantity


table group: SQL

Container typeNameData typeMapping
virtualExtract Id from metadataSingle occurance
update[Order]Single occurance
deleteArticleSingle occurance
insertArticleMax occurrences (2)Order.Articles

insert: Article

Parent: SQL
Container typeNameData typeMapping
column[Order]bigint
<target>=orderid;
columnIdvarcharOrder.Articles.ArticleNr._value_
columnQuantitybigintOrder.Articles.quantity._value_

delete: Article

Parent: SQL
Container typeNameData typeMapping
where
WHERE [Order] = :orderid

update: [Order]

Parent: SQL
Container typeNameData typeMapping
columnReceiveddatetime
<target>=timestamp();
where
WHERE Id = :orderid

virtual: Extract Id from metadata

Parent: SQL
Container typeNameData typeMapping
edi-c codecode
integer iTable = tableload ("table1",argv[8] , ":");    
string  url = tablematch (iTable, "X-Inobiz-URL");
string orderid = filename(url); //Picks up the last section separated by "/"


Mappings