1

Minor bug when running Shopify Connector with another languages than 1030. 


In codeunit 30165 "Shpfy Orders API" the "Cancel Reason" is sent to Shopify by the internal procedure CancelOrder. But the problem is that the parameters are added by Parameters.Add('CancelReason', Format(CancelReason) and therefore the function crash when language is different from 1030. 

Is it possible to change the code so it can handle when users doesn't use 1030 as language? A solution could be to return name value of enum instead of caption.


//>>

/*    

case CancelReason of

    CancelReason::" ", CancelReason::Unknown:

        Parameters.Add('CancelReason', Format(CancelReason::Other).ToUpper());

        else

             Parameters.Add('CancelReason', Format(CancelReason).ToUpper());

    end;

*/

    if CancelReason in [CancelReason::" ", CancelReason::Unknown] then

    CancelReason := CancelReason::Other;

        Parameters.Add('CancelReason', UpperCase(CancelReason.Names.Get(CancelReason.Ordinals.IndexOf(CancelReason.AsInteger()))));

//<<


Category: Development
STATUS DETAILS
New