Skip to main content
Question

2025 R2 Shopify Connector: Import Sales Order Line Custom Field not working But the same implementation is working in 24R1

  • January 3, 2026
  • 0 replies
  • 22 views

vivekm
Varsity III
Forum|alt.badge.img

Hello Everyone,

I worked on a Shopify Connector Customization in 24R1 (Build 24.121.0004) to update sales order line custom field on order sync.

The same customization I upgraded to 25R2 (Build 25.200.0248) But in this version it is not working and the sale order line custom field is not updating during order sync.

Sharing the sample code below for review, can you please help with resolution.

DAC:

public sealed class KNSPAMISOLineExt : PXCacheExtension<SOLine>
{
    public static bool IsActive() { return true; }   

    #region TestQty
    [PXDBDecimal()]
    [PXUIField(DisplayName = "TestQty")]
    public decimal? TestQty { get; set; }
    public abstract class testQty : PX.Data.BQL.BqlDecimal.Field<testQty> { }
    #endregion
}

ASPX:

<RowTemplate>
 <px:PXNumberEdit ID="edTestQty" runat="server" DataField="TestQty" CommitChanges="true" ></px:PXNumberEdit>
</RowTemplate>


<Columns>
 <px:PXGridColumn DataField="TestQty" Width="70" CommitChanges="True" />
</Columns>

Customization Code:

public class KNSPSalesOrderProcessorExt11 : PXGraphExtension<SPSalesOrderProcessor>
{
    public static bool IsActive() { return true; }

    public delegate Task MapBucketImportDelegate(SPSalesOrderBucket bucket, IMappedEntity existing, CancellationToken cancellationToken);
    [PXOverride()]
    public async Task MapBucketImport(SPSalesOrderBucket bucket, IMappedEntity existing, CancellationToken cancellationToken, MapBucketImportDelegate baseMethod)
    {
        await baseMethod(bucket, existing, cancellationToken);

        MappedOrder obj = bucket.Order;
        OrderDataGQL data = obj.Extern;
        SalesOrder impl = obj.Local;

        foreach (SalesOrderDetail orderLine in impl.Details)
        {
            if (orderLine.Custom == null)
                orderLine.Custom = new CustomField[] { }.ToList();

            CustomDecimalField customKitKitOriginalQty1 = new CustomDecimalField
            {
                ViewName = "Transactions",
                FieldName = "TestQty",
                Value = (1.00m).ValueField()
            };
            orderLine.Custom.Add(customKitKitOriginalQty1);
        }
    }
}

Thank you in advance!