Invalid Expression - Workflow

Guys, can you help?

3X_8_b_8b90e0900fa0293813a6a2729b09c9e803ed5f29.png

On a workflow templare (docx) I need to pull the [BranchName] from table Admin" where [Branch] of this row = [Branch] in โ€œAdminโ€.

The error is below:

Failed: Action not performed because 2 errors are present. Error: Workflow rule โ€˜Email Customer Quoteโ€™ action โ€˜EmailCustQuoteโ€™ Attachment template. Expression โ€˜FILTER(โ€œAdminโ€, AND([Branch]=[_THISROW].[Branch]))โ€™ is invalid due to: Condition AND(([Branch] = [ID].[Branch])) has an invalid structure: at least 2 subexpression(s) required. Error: Workflow rule โ€˜Email Customer Quoteโ€™ action โ€˜EmailCustQuoteโ€™ Attachment template. Start expression โ€˜FILTER(โ€œAdminโ€, AND([Branch]=[_THISROW].[Branch]))โ€™ should generate a List of Ref values. Please verify that it generates a List and that the contents of the List are Ref values. Ref values should come from the โ€˜Keyโ€™ column of the referenced tableโ€ฆ

But I donโ€™t understand why this is.
Can you guys help with this?
Much appreciated.

0 10 627
10 REPLIES 10

Steve
Platinum 4
Platinum 4

What donโ€™t you understand?

Hi Steve, the expression looks ok to me, all the elements are there, I canโ€™t see teh invalid structureโ€ฆ
[Branch] Is in both the โ€œAdminโ€ table and the โ€œCustomersโ€ table.

The workflow works from the customer table, looks at the admin table and if branch and branch are the same pull the branch name.
Admin only has one row for each branch and branchname.

@Dave_Willett
AND() expression requires at least 2 parameters/sub-expressions to evaluate. The AND expression in your FILTER expression has only one, thatโ€™s the problem. Remove the AND from the FILTER and try:

<<Start: FILTER(โ€œAdminโ€, ([Branch]=[_THISROW].[Branch]))>><<[BranchName]>><<End>>

An oversight from my perspective thenโ€ฆ
Iโ€™m testing from the worksflow, thanks for your support guys.

The workflow test says: SUCCESS

Thank you guys.

Youโ€™re very welcome.

Just a thought guys.
Would the expression work if I wanted to have a logo on the top of the template, meaning change the image relating to the branch?

If you set a proper expression for that, yes of course.

Thanks Levent

Youโ€™re very welcome

Top Labels in this Space