Convert to json from txt

Hi all.
I`m new to this, and pretty dumb.

I want to convert a comma and semicolon separated file into json, and import this to Poweroffice in the api.

the json should look something like this : slight_smile:

POST /Voucher/OutgoingInvoiceVoucher/ HTTP/1.1
Authorization: Bearer [Access Key]
Content-Type: application/json; charset=utf-8

{
    "customerCode": number,
    "purchaseOrderNo": string,
    "contractNo": string,
    "deliveryTerm": string,
    "deliveryDate": Date,
    "customerReference": string,
    "ourReferenceEmployeeCode": number,
    "dueDate": Date,
    "currencyRate": number,
    "cid": string,
    "invoiceNo": number,
    "lines": [{
        "unit": string,
        "unitCostPrice": number,
        "discountPercent": number,
        "accrual": {
            "resultAccountCode": number,
            "resultAccountAgricultureDepartment": AgricultureDepartment,
            "numOfMonths": number,
            "isActive": boolean,
            "fromDate": Date,
            "toDate": Date,
            "balanceAccountCode": number,
            "balanceAccountAgricultureDepartment": AgricultureDepartment
        },
        "id": number,
        "amount": number,
        "projectCode": string,
        "departmentCode": string,
        "dim1Code": string,
        "dim2Code": string,
        "dim3Code": string,
        "locationCode": string,
        "productCode": string,
        "quantity": number,
        "accountCode": number,
        "vatCode": string,
        "vatReturnSpecification": VatReturnSpecification,
        "description": string,
        "externalImportLineReference": string,
        "agricultureDepartment": AgricultureDepartment
    }],
    "customMatchingReference": string,
    "importedOrderNo": number,
    "id": string (Guid),
    "voucherDate": Date,
    "importedVoucherNo": number,
    "projectCode": string,
    "departmentCode": string,
    "dim1Code": string,
    "dim2Code": string,
    "dim3Code": string,
    "locationCode": string,
    "currencyCode": string,
    "externalImportReference": string,
    "saftSourceId": string,
    "saftBatchId": string
}

The contents of the txt file looks like this :

@IMPORT_METHOD(1)

@Actor (=CustNo,SupNo,Nm,Ad1,Ad2,Ad3,PNo,PArea,Phone,Fax,MailAd,BsNo,BGiro,Ctry,Lang,Cur,CPmtTrm,SPmtTrm)
β€œ10458”;β€œ0”;β€œVesterlandet GΓ‚rd / D. Hansen”;β€œVesterlandet 226";β€œβ€;β€œβ€;β€œ8407”;β€œSortland”;β€œβ€;β€œβ€;"vesterlandetgaard@gmail.com”;β€œ926967878”;β€œβ€;β€œ47”;β€œ47”;β€œβ€;β€œ15”;β€œ15”

@IMPORT_METHOD(3)

@WaBnd (ValDt, SrcTp, Descr)
β€œ20240326” β€œ12” β€œQuick3 Import”
@WaVo (VoNo,VoDt,ValDt,VoTp,Txt,DbAcNo,DbTrnCl,DbTxCd,CrAcNo,CrTrnCl,CrTxCd,Am,InvoNo,DueDt,VatAm,R1,R2,R7,CID,Txt2,AGRef)
β€œ100489”;β€œ20240326”;β€œ20240326”;β€œ11”;β€œUtg.faktura”;β€œ10458”;β€œ0”;β€œ0”;β€œ0”;β€œ0”;β€œ0”;β€œ33818.00”;β€œ100489”;β€œ20240405”;β€œβ€;β€œβ€;β€œβ€;β€œβ€;β€œ001045801004890”;β€œβ€;β€œβ€;;
β€œ100489”;β€œ20240326”;β€œ20240326”;β€œ11”;β€œUtg.faktura”;β€œ0”;β€œ0”;β€œ0”;β€œ7740”;β€œ0”;β€œ0”;β€œ0.50”;β€œβ€;β€œβ€;β€œβ€;β€œβ€;β€œβ€;β€œβ€;β€œβ€;β€œβ€;β€œβ€;;
β€œ100489”;β€œ20240326”;β€œ20240326”;β€œ11”;β€œUtg.faktura”;β€œ0”;β€œ0”;β€œ0”;β€œ3000”;β€œ0”;β€œ3”;β€œ30937.50”;β€œβ€;β€œβ€;β€œβ€;β€œ1”;β€œβ€;β€œβ€;β€œβ€;β€œβ€;β€œβ€;;
β€œ100489”;β€œ20240326”;β€œ20240326”;β€œ11”;β€œUtg.faktura”;β€œ0”;β€œ0”;β€œ0”;β€œ3001”;β€œ0”;β€œ3”;β€œ2880.00”;β€œβ€;β€œβ€;β€œβ€;β€œ1”;β€œβ€;β€œβ€;β€œβ€;β€œβ€;β€œβ€;;

Does anyone have a tip?

i have tried several solutions in make csv and json, but have not found the solution yet.

link to api documentation : PowerOffice Go API Reference Documentation

Welcome to the Make community!

Please format the contents of the text file like this:

A.

Save the bundle contents in your text editor as a .txt file, and upload it here into this discussion thread.

Uploading it here will look like this:

content.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted output bundle in this manner:

  • Either add three backticks ``` before and after the content, like this:

    ```
    content goes here
    ```

  • Or use the format code button in the editor:
    Screenshot_2023-10-02_191027

You may need to re-paste a fresh copy of the text to ensure nothing has changed.

Following these steps will allow others to assist you here. Thanks!

2 Likes

Hey @Mathias_Kringelen - I’m so sorry but it’s not clear to me exactly what you’re trying to accomplish. As you trying to take a CSV, convert it to JSON, and then use that to pass into Poweroffice?

If so, there are a few things to consider. The first is, does the CSV match the formatting you’d expect in your JSON payload? My guess would be no and in that case you’d need to do some sort of mapping of the CSV content and it’s columns to the JSON key / value structure. You could pretty easily iterate over each row in your CSV using make and map the data in that to JSON bundles that could then be submitted as part of an API call to Poweroffice. With this approach you could ensure that the json payload is being formatted properly as a straight csv to json converted will likely not covert it into the exact format PowerOffice expects it to be in.

I’d be happy to try and help out more if I’m understanding what you’re asking properly. Let me know if this was helpful and how I can help out with this!

Hi, and thank you for response.
It is like you say.
The Txt comes as an export from the software we use for sending invoices to customers.
Id like to send it into poweroffice using an api call. It is probably as you say. When i try converting it, it does not look like it should, so i have tried with parsing and things like that, but i have not got a single clue of using it. Id be very happy if you could try for me :smiley:

Please reupload the data in a text file here in this forum. The data you pasted directly is not valid CSV as you did not format it as code, and the forum software made it invalid.

Help us help you. Thank you.

2 Likes

@Actor (=CustNo,SupNo,Nm,Ad1,Ad2,Ad3,PNo,PArea,Phone,Fax,MailAd,BsNo,BGiro,Ctry,Lang,Cur,CPmtTrm,SPmtTrm)
"10458";"0";"Vesterlandet GΓ‚rd / D. Hansen";"Vesterlandet 226";"";"";"8407";"Sortland";"";"";"vesterlandetgaard@gmail.com";"926967878";"";"47";"47";"";"15";"15"

@IMPORT_METHOD(3)

@WaBnd (ValDt, SrcTp, Descr)
"20240326" "12" "Quick3 Import"
@WaVo (VoNo,VoDt,ValDt,VoTp,Txt,DbAcNo,DbTrnCl,DbTxCd,CrAcNo,CrTrnCl,CrTxCd,Am,InvoNo,DueDt,VatAm,R1,R2,R7,CID,Txt2,AGRef)
"100489";"20240326";"20240326";"11";"Utg.faktura";"10458";"0";"0";"0";"0";"0";"33818.00";"100489";"20240405";"";"";"";"";"001045801004890";"";"";;
"100489";"20240326";"20240326";"11";"Utg.faktura";"0";"0";"0";"7740";"0";"0";"0.50";"";"";"";"";"";"";"";"";"";;
"100489";"20240326";"20240326";"11";"Utg.faktura";"0";"0";"0";"3000";"0";"3";"30937.50";"";"";"";"1";"";"";"";"";"";;
"100489";"20240326";"20240326";"11";"Utg.faktura";"0";"0";"0";"3001";"0";"3";"2880.00";"";"";"";"1";"";"";"";"";"";;```

Thank you. It`s done now :smiley:

Welcome to the Make community!

Yes, that is possible. You’ll need a minimum of four modules:

1. Extract Actor and WaBnd

Screenshot_2024-02-20_151445

You can use a Text Parser β€œMatch Pattern” module with this Pattern (regular expression):

@Actor[^\n]+\s+"(?<CustNo>[^"]*)";"(?<SupNo>[^"]*)";"(?<Nm>[^"]*)";"(?<Ad1>[^"]*)";"(?<Ad2>[^"]*)";"(?<Ad3>[^"]*)";"(?<PNo>[^"]*)";"(?<PArea>[^"]*)";"(?<Phone>[^"]*)";"(?<Fax>[^"]*)";"(?<MailAd>[^"]*)";"(?<BsNo>[^"]*)";"(?<BGiro>[^"]*)";"(?<Ctry>[^"]*)";"(?<Lang>[^"]*)";"(?<Cur>[^"]*)";"(?<CPmtTrm>[^"]*)";"(?<SPmtTrm>[^"]*)"[\w\W]+@WaBnd[^\n]+\s+"(?<ValDt>[^"]*)" "(?<SrcTp>[^"]*)" "(?<Descr>[^"]*)"

Proof https://regex101.com/r/TCtOXU

Important Info

  • :warning: Global match must be set to NO!

Output

Screenshot_2024-04-09_000440

2. Match WaVo items

Welcome to the Make community!

Screenshot_2024-02-20_151445

You can use a Text Parser β€œMatch Pattern” module with this Pattern (regular expression):

"(?<VoNo>[^"]*)";"(?<VoDt>[^"]*)";"(?<ValDt>[^"]*)";"(?<VoTp>[^"]*)";"(?<Txt>[^"]*)";"(?<DbAcNo>[^"]*)";"(?<DbTrnCl>[^"]*)";"(?<DbTxCd>[^"]*)";"(?<CrAcNo>[^"]*)";"(?<CrTrnCl>[^"]*)";"(?<CrTxCd>[^"]*)";"(?<Am>[^"]*)";"(?<InvoNo>[^"]*)";"(?<DueDt>[^"]*)";"(?<VatAm>[^"]*)";"(?<R1>[^"]*)";"(?<R2>[^"]*)";"(?<R7>[^"]*)";"(?<CID>[^"]*)";"(?<Txt2>[^"]*)";"(?<AGRef>[^"]*)";;

Proof https://regex101.com/r/eGfBid

Important Info

  • :warning: Global match must be set to YES!

Output


For more information, see Text Parser in the Make Help Center:

Match Pattern
The Match pattern module enables you to find and extract string elements matching a search pattern from a given text. The search pattern is a regular expression (aka regex or regexp), which is a sequence of characters in which each character is either a metacharacter, having a special meaning, or a regular character that has a literal meaning.

3, 4. Build JSON

Then all you got to do is map the variables into the JSON structure you provided above. I’ll leave this to you to figure out since the hard part is done.

Hope this helps!

samliew – request private consultation

2 Likes

You can copy and paste this module export into your scenario. This will paste the modules shown in my screenshots above.

  1. Copy the code below by clicking the copy button when you mouseover the top-right of the code block
    Screenshot_2024-01-17_200117

  2. Enter your scenario editor. Press ESC to close any dialogs. Press CTRLV to paste in the canvas.

  3. Click on each imported module and save it. You may need to remap some variables.

Modules JSON Export

{
    "subflows": [
        {
            "flow": [
                {
                    "id": 55,
                    "module": "util:ComposeTransformer",
                    "version": 1,
                    "parameters": {},
                    "mapper": {
                        "value": "@Actor (=CustNo,SupNo,Nm,Ad1,Ad2,Ad3,PNo,PArea,Phone,Fax,MailAd,BsNo,BGiro,Ctry,Lang,Cur,CPmtTrm,SPmtTrm)\n\"10458\";\"0\";\"Vesterlandet GΓ‚rd / D. Hansen\";\"Vesterlandet 226\";\"\";\"\";\"8407\";\"Sortland\";\"\";\"\";\"vesterlandetgaard@gmail.com\";\"926967878\";\"\";\"47\";\"47\";\"\";\"15\";\"15\"\n\n@IMPORT_METHOD(3)\n\n@WaBnd (ValDt, SrcTp, Descr)\n\"20240326\" \"12\" \"Quick3 Import\"\n@WaVo (VoNo,VoDt,ValDt,VoTp,Txt,DbAcNo,DbTrnCl,DbTxCd,CrAcNo,CrTrnCl,CrTxCd,Am,InvoNo,DueDt,VatAm,R1,R2,R7,CID,Txt2,AGRef)\n\"100489\";\"20240326\";\"20240326\";\"11\";\"Utg.faktura\";\"10458\";\"0\";\"0\";\"0\";\"0\";\"0\";\"33818.00\";\"100489\";\"20240405\";\"\";\"\";\"\";\"\";\"001045801004890\";\"\";\"\";;\n\"100489\";\"20240326\";\"20240326\";\"11\";\"Utg.faktura\";\"0\";\"0\";\"0\";\"7740\";\"0\";\"0\";\"0.50\";\"\";\"\";\"\";\"\";\"\";\"\";\"\";\"\";\"\";;\n\"100489\";\"20240326\";\"20240326\";\"11\";\"Utg.faktura\";\"0\";\"0\";\"0\";\"3000\";\"0\";\"3\";\"30937.50\";\"\";\"\";\"\";\"1\";\"\";\"\";\"\";\"\";\"\";;\n\"100489\";\"20240326\";\"20240326\";\"11\";\"Utg.faktura\";\"0\";\"0\";\"0\";\"3001\";\"0\";\"3\";\"2880.00\";\"\";\"\";\"\";\"1\";\"\";\"\";\"\";\"\";\"\";;"
                    },
                    "metadata": {
                        "designer": {
                            "x": 268,
                            "y": -3095
                        },
                        "restore": {},
                        "expect": [
                            {
                                "name": "value",
                                "type": "text",
                                "label": "Text"
                            }
                        ]
                    }
                },
                {
                    "id": 56,
                    "module": "regexp:Parser",
                    "version": 1,
                    "parameters": {
                        "pattern": "@Actor[^\\n]+\\s+\"(?<CustNo>[^\"]*)\";\"(?<SupNo>[^\"]*)\";\"(?<Nm>[^\"]*)\";\"(?<Ad1>[^\"]*)\";\"(?<Ad2>[^\"]*)\";\"(?<Ad3>[^\"]*)\";\"(?<PNo>[^\"]*)\";\"(?<PArea>[^\"]*)\";\"(?<Phone>[^\"]*)\";\"(?<Fax>[^\"]*)\";\"(?<MailAd>[^\"]*)\";\"(?<BsNo>[^\"]*)\";\"(?<BGiro>[^\"]*)\";\"(?<Ctry>[^\"]*)\";\"(?<Lang>[^\"]*)\";\"(?<Cur>[^\"]*)\";\"(?<CPmtTrm>[^\"]*)\";\"(?<SPmtTrm>[^\"]*)\"[\\w\\W]+@WaBnd[^\\n]+\\s+\"(?<ValDt>[^\"]*)\" \"(?<SrcTp>[^\"]*)\" \"(?<Descr>[^\"]*)\"",
                        "global": false,
                        "sensitive": true,
                        "multiline": false,
                        "singleline": false,
                        "continueWhenNoRes": false
                    },
                    "mapper": {
                        "text": "{{55.value}}"
                    },
                    "metadata": {
                        "designer": {
                            "x": 572,
                            "y": -3096,
                            "name": "Extract Actor and WaBnd"
                        },
                        "restore": {},
                        "parameters": [
                            {
                                "name": "pattern",
                                "type": "text",
                                "label": "Pattern",
                                "required": true
                            },
                            {
                                "name": "global",
                                "type": "boolean",
                                "label": "Global match",
                                "required": true
                            },
                            {
                                "name": "sensitive",
                                "type": "boolean",
                                "label": "Case sensitive",
                                "required": true
                            },
                            {
                                "name": "multiline",
                                "type": "boolean",
                                "label": "Multiline",
                                "required": true
                            },
                            {
                                "name": "singleline",
                                "type": "boolean",
                                "label": "Singleline",
                                "required": true
                            },
                            {
                                "name": "continueWhenNoRes",
                                "type": "boolean",
                                "label": "Continue the execution of the route even if the module finds no matches",
                                "required": true
                            }
                        ],
                        "expect": [
                            {
                                "name": "text",
                                "type": "text",
                                "label": "Text"
                            }
                        ],
                        "interface": [
                            {
                                "type": "text",
                                "name": "CustNo",
                                "label": "CustNo"
                            },
                            {
                                "type": "text",
                                "name": "SupNo",
                                "label": "SupNo"
                            },
                            {
                                "type": "text",
                                "name": "Nm",
                                "label": "Nm"
                            },
                            {
                                "type": "text",
                                "name": "Ad1",
                                "label": "Ad1"
                            },
                            {
                                "type": "text",
                                "name": "Ad2",
                                "label": "Ad2"
                            },
                            {
                                "type": "text",
                                "name": "Ad3",
                                "label": "Ad3"
                            },
                            {
                                "type": "text",
                                "name": "PNo",
                                "label": "PNo"
                            },
                            {
                                "type": "text",
                                "name": "PArea",
                                "label": "PArea"
                            },
                            {
                                "type": "text",
                                "name": "Phone",
                                "label": "Phone"
                            },
                            {
                                "type": "text",
                                "name": "Fax",
                                "label": "Fax"
                            },
                            {
                                "type": "text",
                                "name": "MailAd",
                                "label": "MailAd"
                            },
                            {
                                "type": "text",
                                "name": "BsNo",
                                "label": "BsNo"
                            },
                            {
                                "type": "text",
                                "name": "BGiro",
                                "label": "BGiro"
                            },
                            {
                                "type": "text",
                                "name": "Ctry",
                                "label": "Ctry"
                            },
                            {
                                "type": "text",
                                "name": "Lang",
                                "label": "Lang"
                            },
                            {
                                "type": "text",
                                "name": "Cur",
                                "label": "Cur"
                            },
                            {
                                "type": "text",
                                "name": "CPmtTrm",
                                "label": "CPmtTrm"
                            },
                            {
                                "type": "text",
                                "name": "SPmtTrm",
                                "label": "SPmtTrm"
                            },
                            {
                                "type": "text",
                                "name": "ValDt",
                                "label": "ValDt"
                            },
                            {
                                "type": "text",
                                "name": "SrcTp",
                                "label": "SrcTp"
                            },
                            {
                                "type": "text",
                                "name": "Descr",
                                "label": "Descr"
                            }
                        ]
                    }
                },
                {
                    "id": 57,
                    "module": "regexp:Parser",
                    "version": 1,
                    "parameters": {
                        "pattern": "\"(?<VoNo>[^\"]*)\";\"(?<VoDt>[^\"]*)\";\"(?<ValDt>[^\"]*)\";\"(?<VoTp>[^\"]*)\";\"(?<Txt>[^\"]*)\";\"(?<DbAcNo>[^\"]*)\";\"(?<DbTrnCl>[^\"]*)\";\"(?<DbTxCd>[^\"]*)\";\"(?<CrAcNo>[^\"]*)\";\"(?<CrTrnCl>[^\"]*)\";\"(?<CrTxCd>[^\"]*)\";\"(?<Am>[^\"]*)\";\"(?<InvoNo>[^\"]*)\";\"(?<DueDt>[^\"]*)\";\"(?<VatAm>[^\"]*)\";\"(?<R1>[^\"]*)\";\"(?<R2>[^\"]*)\";\"(?<R7>[^\"]*)\";\"(?<CID>[^\"]*)\";\"(?<Txt2>[^\"]*)\";\"(?<AGRef>[^\"]*)\";;",
                        "global": true,
                        "sensitive": true,
                        "multiline": false,
                        "singleline": false,
                        "continueWhenNoRes": false,
                        "ignoreInfiniteLoopsWhenGlobal": false
                    },
                    "mapper": {
                        "text": "{{55.value}}"
                    },
                    "metadata": {
                        "designer": {
                            "x": 820,
                            "y": -3098,
                            "name": "Extract WaVo"
                        },
                        "restore": {},
                        "parameters": [
                            {
                                "name": "pattern",
                                "type": "text",
                                "label": "Pattern",
                                "required": true
                            },
                            {
                                "name": "global",
                                "type": "boolean",
                                "label": "Global match",
                                "required": true
                            },
                            {
                                "name": "sensitive",
                                "type": "boolean",
                                "label": "Case sensitive",
                                "required": true
                            },
                            {
                                "name": "multiline",
                                "type": "boolean",
                                "label": "Multiline",
                                "required": true
                            },
                            {
                                "name": "singleline",
                                "type": "boolean",
                                "label": "Singleline",
                                "required": true
                            },
                            {
                                "name": "continueWhenNoRes",
                                "type": "boolean",
                                "label": "Continue the execution of the route even if the module finds no matches",
                                "required": true
                            },
                            {
                                "name": "ignoreInfiniteLoopsWhenGlobal",
                                "type": "boolean",
                                "label": "Ignore errors when there is an infinite search loop",
                                "required": true
                            }
                        ],
                        "expect": [
                            {
                                "name": "text",
                                "type": "text",
                                "label": "Text"
                            }
                        ],
                        "interface": [
                            {
                                "type": "text",
                                "name": "VoNo",
                                "label": "VoNo"
                            },
                            {
                                "type": "text",
                                "name": "VoDt",
                                "label": "VoDt"
                            },
                            {
                                "type": "text",
                                "name": "ValDt",
                                "label": "ValDt"
                            },
                            {
                                "type": "text",
                                "name": "VoTp",
                                "label": "VoTp"
                            },
                            {
                                "type": "text",
                                "name": "Txt",
                                "label": "Txt"
                            },
                            {
                                "type": "text",
                                "name": "DbAcNo",
                                "label": "DbAcNo"
                            },
                            {
                                "type": "text",
                                "name": "DbTrnCl",
                                "label": "DbTrnCl"
                            },
                            {
                                "type": "text",
                                "name": "DbTxCd",
                                "label": "DbTxCd"
                            },
                            {
                                "type": "text",
                                "name": "CrAcNo",
                                "label": "CrAcNo"
                            },
                            {
                                "type": "text",
                                "name": "CrTrnCl",
                                "label": "CrTrnCl"
                            },
                            {
                                "type": "text",
                                "name": "CrTxCd",
                                "label": "CrTxCd"
                            },
                            {
                                "type": "text",
                                "name": "Am",
                                "label": "Am"
                            },
                            {
                                "type": "text",
                                "name": "InvoNo",
                                "label": "InvoNo"
                            },
                            {
                                "type": "text",
                                "name": "DueDt",
                                "label": "DueDt"
                            },
                            {
                                "type": "text",
                                "name": "VatAm",
                                "label": "VatAm"
                            },
                            {
                                "type": "text",
                                "name": "R1",
                                "label": "R1"
                            },
                            {
                                "type": "text",
                                "name": "R2",
                                "label": "R2"
                            },
                            {
                                "type": "text",
                                "name": "R7",
                                "label": "R7"
                            },
                            {
                                "type": "text",
                                "name": "CID",
                                "label": "CID"
                            },
                            {
                                "type": "text",
                                "name": "Txt2",
                                "label": "Txt2"
                            },
                            {
                                "type": "text",
                                "name": "AGRef",
                                "label": "AGRef"
                            },
                            {
                                "type": "uinteger",
                                "name": "i",
                                "label": "i"
                            },
                            {
                                "type": "any",
                                "name": "__IMTMATCH__",
                                "label": "Fallback Match"
                            }
                        ]
                    }
                },
                {
                    "id": 58,
                    "module": "util:TextAggregator",
                    "version": 1,
                    "parameters": {
                        "rowSeparator": "",
                        "feeder": 57
                    },
                    "mapper": {
                        "value": ""
                    },
                    "metadata": {
                        "designer": {
                            "x": 1065,
                            "y": -3100,
                            "name": "Build lines JSON array items"
                        },
                        "restore": {
                            "parameters": {
                                "rowSeparator": {
                                    "label": "Empty"
                                }
                            },
                            "extra": {
                                "feeder": {
                                    "label": "Extract WaVo - Match pattern"
                                }
                            }
                        },
                        "parameters": [
                            {
                                "name": "rowSeparator",
                                "type": "select",
                                "label": "Row separator",
                                "validate": {
                                    "enum": [
                                        "\n",
                                        "\t",
                                        "other"
                                    ]
                                }
                            }
                        ],
                        "expect": [
                            {
                                "name": "value",
                                "type": "text",
                                "label": "Text"
                            }
                        ]
                    }
                },
                {
                    "id": 59,
                    "module": "util:ComposeTransformer",
                    "version": 1,
                    "metadata": {
                        "designer": {
                            "x": 1317,
                            "y": -3100,
                            "name": "Build combined JSON",
                            "messages": [
                                {
                                    "category": "last",
                                    "severity": "warning",
                                    "message": "A transformer should not be the last module in the route."
                                }
                            ]
                        }
                    }
                }
            ]
        }
    ],
    "metadata": {
        "version": 1
    }
}

samliew – request private consultation

2 Likes

Hi there.
And thank you so much for your help :smiley:

Can you please give me a hint for the next step, just so i know the principals of it?
Then i`ll do it myself.

Thanks in advance :slight_smile:

You can paste the JSON formatting and map the variables into it.

2 Likes

I really feel pretty dumb now, but can you give me an example, so i get it going? :woozy_face:
I think i have tried so much that my head has stopped working :expressionless: :joy:

E.g.:

2 Likes

Hi again @samliew
And thank you so much for your help.

Can i ask you yo take look at this one for me too?

:slight_smile:

It seems like i have to convert/parse the dates in this string. I have tried in the module i map the json, but that does not do the trick.
Format is now YYYYMMDD and i need YYYY-MM-DD ideas?

No problem, glad I could help!

If you have a new question in the future, please start a new thread. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help since newer questions are monitored closely.

While it’s tempting to continue an existing thread, a more effective approach would be to start a new topic. It helps other community users to respond to your query, and keeps our space organised for everyone. If you start a new conversation you are also more likely to get help from other users. You can refer others back to a related topic by including that link in your question. Thank you for understanding and keeping our community neat and tidy.

The β€œNew Topic” link can be found in the top-right of the header:
Screenshot_2023-12-19_091207

samliew – request private consultation

3 Likes