I’m using SQL in the workflow “set field value”. There are 2 different custom records i am trying to pull from using a CASE WHEN statement. I want to be able to say “if transaction currency matches customfield1 from customrecord1, then get customrecord1 internal id and set the field on the invoice. if transaction currency doesn’t match any customfield1 from any customrecord1, then use defaultcustomfield1 from customrecord2 End”.
There is another AND statement that I will need to put in where customfield2 from customrecord1 ALSO needs to match a custom field from the transaction or it should use the default field, but I am just trying to get the first part to work right now of one IF statement. thank you for your response