I’m taking PDF attachments from Outlook, extracting data from the invoices using PDF.co, then normalizing the company name with a Set Variable module — removing extra spaces and converting everything to lowercase. Then I use another Set Variable to standardize it to either “NS3” or “Drive”. After that, I’ll create folders on OneDrive based on this.
My formula is not correct, it’s dosn’t work. Here it is:
if(or(contains({{14.supplier_normalized}};ns3);contains({{14.supplier_normalized}};drive));NS3 or Drive;UNKNOWN)
Can you help me fix it?
What is the problem & what have you tried?
tried to change the function
Error messages or input/output bundles
the module does not perceive the function, but perceives it as text
1st thats not a formula, thats a text string. Select the formula from the field to see the difference.
2nd contains() returns a boolean true or false value, if(contains(something)=true) is the core of the formula.
Whichever AI you are using to create this, is wrong.
It should be something like if(contains(name;ns3)=true or contains(name;drive)=true;NS3 or Drive;Unknown) but select the different functions from the menu instead so they are actually functions and not just text.