Forum Discussion

SummerB123's avatar
SummerB123
Copper Contributor
Sep 01, 2025

Setting up rules, the subject line changes

Hi, 

 

I'm trying to set up a rule for invoices to forward to a specific place however, generally the subject line comes through as "Invoice 123456 from The Suppliers Name here"

I can't shorted the subject line in the rule to invoice as that isn't specific enough and I can't shorten it to the suppliers name as that would include emails that aren't invoice related, but as the invoice number changes each time I'm unable to use the subject line as is. 

Can anything replace the number, but keep the complete subject line intact, such as;

"Invoice !!! from The Suppliers Name here" and the code advises the system that any number can be here in the middle of the subject title. 

 

Thank you 

 

3 Replies

  • Hornblower409's avatar
    Hornblower409
    Brass Contributor

    One Rule with Two Conditions. One "Subject" contains and one "Subject or Body" contains.
    https://learn.microsoft.com/en-us/answers/questions/4571320/outlook-rule-for-non-sequence-2-words

    Two Rules. First matches on Subject and assigns a Cat. Second looks for the Cat and also the other Subject word.

    Invoice01

    Apply this rule after the message arrives
    with Invoice in the subject
    assign it to the Invoice Cat category

    Invoice02
    Apply this rule after the message arrives
    with Supplier Name in the subject
    and assigned to Invoice Cat category
    {Do something with it}

    Invoice03
    Apply this rule after the message arrives
    assigned to Invoice Cat category
    clear message's categories

  • I would keep on trying to get it working with the least amount of words, but use the ones that will match the invoices. Are you in New Outlook/Outlook Classic or OWA? 

  • Hornblower409's avatar
    Hornblower409
    Brass Contributor

    One Rule with Two Conditions. One "Subject" contains and one "Subject or Body" contians.
    https://learn.microsoft.com/en-us/answers/questions/4571320/outlook-rule-for-non-sequence-2-words

    Two Rules. First one matches on Subject and assigns a Cat. Second one looks for the Cat and also the other Subject word.

    Invoice01

    Apply this rule after the message arrives
    with Invoice in the subject
    assign it to the Invoice Cat category

    Invoice02
    Apply this rule after the message arrives
    with Supplier Name in the subject
    and assigned to Invoice Cat category
    {Do something with it}

    Invoice03
    Apply this rule after the message arrives
    assigned to Invoice Cat category
    clear message's categories

Resources