You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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)

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!