How to use if condition in service mapping algorithm
Summary:
Hi
I am trying to build a condition statement using service mapping algorithm in Order management configuration. When I give the condition as
if(ChargeRow.ChargeApplyTo == "SHIPPING" && FLineEFF.itemCategory_Custom == "Raw Material" && FLineEFF != null){FreightRow.LineType = "LINE"FreightRow.InventoryItemId = '300000019324029'}else if(ChargeRow.ChargeApplyTo == "SHIPPING" && FLineEFF.itemCategory_Custom == "Sub Assembly" && FLineEFF != null){ FreightRow.LineType = "LINE"FreightRow.InventoryItemId = '300000014437955'}
I am getting the error as
Error: An invalid syntax error occurred at line 7 because of the following issue: Unexpected input: '{\n FreightRow.LineType = "LINE"\nFreightRow.InventoryItemId = '300000014437955''. (QP-2715417)
An invalid syntax error occurred at line 7 because of the following issue: Unexpected input: '{\n FreightRow.LineType = "LINE"\nFreightRow.InventoryItemId = '300000014437955''. (QP-2715417)