I’ve been trying to create a stamp/rule to help link a number of notes, aka products, to a single note called “Email Aliasing (Temporary Mailbox)”, aka a feature. The products have a “Product” prototype, and s $Features attribute that contains “Temporary Mailbox.”
In a test file with three notes the above works. But in my larger real file it is not working. I’m not sure what I’m doing wrong. Does anyone have any ideas?
As @PaulWalters has pointed out, this is forcing Tinderbox to make a few guesses. I think—just so we are all on the same page (line breaks in code just for clarity):
But If this works (Tinderbox guessing correctly!) in your test file, then the question becomes what in the main doc is different.
Are you deploying the code the same way in both files? As you are using aliases at one/both ends are the links being created, but not between the object you assume would be linked. Don’t forget linkToOriginal() or linkFromOriginal() in case that helps.
I ran the query in the attribute browser and ran this as an action. Perfection.
Actually, I wrote, “Benefit” instead of “Feature” in the first try. I successfully used unlinkFromOriginal() to reverse the error and then did it correctly the second time. Worked like a charm.