Liquid Mapping Failure in VS Code

Viewed 14

Alright so I have a simple mapping and I'm using my self of shopify preview plugin for VS code to see what I'm doing in the code. But I'm not getting anything in the fields.

This is my Liquid Code

{
    "contact":{
    
    "matchKey": "{{content.Content.CrmId}}",
    "matchKeyType": "{{content.Content.Owner}}" 
    }
    
}

I want to extract the information from the Json and create another json output schema. Below is the input schema:

{
    "content":{
    "Name": "dwadwadwa",
    "Version": "string",
    "Sender": "TEST",
    "Content": {
        "OrderNumber": "string",
        "OrderGroupId": 0,
        "AffiliateId": "string",
        "BillingCurrency": "string",
        "CustomerId": "string",
        "CrmId": "string",
        "CustomerName": "string",
        "HandlingTotal": 0,
        "MarketId": "string",
        "Name": "string",
        "Owner": "string",
        "OwnerOrg": "string",
        "ShippingTotal": 0,
        "Status": "string",
        "SubTotal": 0,
        "TaxTotal": 0,
        "Total": 0,
        "Modified": "string",
        "Created": "string",
        "Properties": [
            {
                "Key": "string",
                "Value": "string"
            }
        ],
        "Forms": [
            {
                "ReturnComment": "string",
                "ReturnType": "string",
                "ReturnAuthCode": "string",
                "OrderFormId": 0,
                "Name": "string",
                "ReceiptNumber": "string",
                "BillingAddressId": "string",
                "ShippingTotal": 0,
                "HandlingTotal": 0,
                "TaxTotal": 0,
                "DiscountAmount": 0,
                "SubTotal": 0,
                "Total": 0,
                "Status": "string",
                "AuthorizedPaymentTotal": 0,
                "CapturedPaymentTotal": 0,
                "Properties": [
                    {
                        "Key": "string",
                        "Value": "string"
                    }
                ],
                "Payments": [
                    {
                        "Amount": 0,
                        "AuthorizationCode": "string",
                        "CustomerName": "string",
                        "PaymentId": "string",
                        "PaymentMethodId": "string",
                        "PaymentMethodName": "string",
                        "PaymentTypeModel": "string",
                        "Status": "string",
                        "TransactionType": "string",
                        "ValidationCode": "string",
                        "Properties": [
                            {
                                "Key": "string",
                                "Value": "string"
                            }
                        ]
                    }
                ],
                "Shipments":
                    {
                        "ShipmentId": 0,
                        "ShippingMethodId": "string",
                        "ShippingMethodName": "string",
                        "ShippingTax": 0,
                        "ShippingAddressId": "string",
                        "ShipmentTrackingNumber": "string",
                        "ShippingDiscountAmount": 0,
                        "ShippingSubTotal": 0,
                        "ShippingTotal": 0,
                        "Status": "string",
                        "PrevStatus": "string",
                        "PickListId": "string",
                        "SubTotal": 0,
                        "WarehouseCode": "string",
                        "PickupPoint": "string",
                        "Properties": [
                            {
                                "Key": "string",
                                "Value": "string"
                            }
                        ],
                        "DiscountsModel": [
                            {
                                "DiscountId": 0,
                                "DiscountAmount": 0,
                                "DiscountCode": "string",
                                "DiscountName": "string",
                                "DisplayMessage": "string",
                                "DiscountValue": 0
                            }
                        ],
                        "LineItems": [
                            {
                                "LineItemId": 0,
                                "Code": "string",
                                "DisplayName": "string",
                                "PlacedPrice": 0,
                                "ExtendedPrice": 0, 
                                "DiscountedPrice": 0, 
                                "SalesTax": 0, 
                                "TaxCategoryId": 0,
                                "Quantity": 0,
                                "ShippedQuantity": 0,
                                "ReturnQuantity": 0,
                                "InventoryTrackingStatus": "string",
                                "IsInventoryAllocated": true,
                                "IsGift": true,
                                "DeliveryInfo": "string",
                                "ProductUrl": "string",
                                "ImageUrl": "string",
                                "Properties": [
                                    {
                                        "Key": "string",
                                        "Value": "string"
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        ],
        "OrderAddresses": [
            {
                "OrderGroupAddressId": 0,
                "Name": "string",
                "FirstName": "string",
                "LastName": "string",
                "Organization": "string",
                "Line1": "string",
                "Line2": "string",
                "City": "string",
                "State": "string",
                "CountryCode": "string",
                "CountryName": "string",
                "PostalCode": "string",
                "RegionCode": "string",
                "RegionName": "string",
                "DaytimePhoneNumber": "string",
                "EveningPhoneNumber": "string",
                "Email": "string",
                "Properties": [
                    {
                        "Key": "string",
                        "Value": "string"
                    }
                ]
            }
        ]
    }
}
}

Anyone know what is wrong with this i'm kinda lost and cannot find anything on the internet.

This is my output btw

{
    "contact":{
    
    "matchKey": "",
    "matchKeyType": "" 
    }
    
}
0 Answers
Related