I want to filter items in an invoice saved search based on the subsidiary associated with the department on the item line. Specifically, for each item line, I need to check whether the subsidiary selected in the line "custom-subsidiary" field is present in the multi-select subsidiary fields of the line {custom_department}
I’m attempting to use the following formula in the saved search filter, but it’s throwing an error:
CASE WHEN {custcol_alloc_department.subsidiary} contains {item.linesubsidiary}
Please advice!
I want to filter items in an invoice saved search based on the subsidiary associated with the department on the item line. Specifically, for each item line, I need to check whether the subsidiary selected in the line "custom-subsidiary" field is present in the multi-select subsidiary fields of the line {custom_department}
I’m attempting to use the following formula in the saved search filter, but it’s throwing an error:
CASE WHEN {custcol_alloc_department.subsidiary} contains {item.linesubsidiary}
Please advice!
Can you add the full formula used? To check what is happening I need to check the full formula.
From what I see in the part of the formula shown, 'CASE WHEN {custcol_alloc_department.subsidiary} contains {item.linesubsidiary}' looks quite strange. They are using 'contains,' but 'contains' is a function that cannot be used on just any field as it requires a specific index.
Best ERPSof