I created this post a couple of years ago and we're still hitting a wall trying to figure out the best way to accomplish this: Dynamic formula to change output based on username viewing the table
I have started thinking about using an external no-code app interface designer to create a simple portal, where someone can login, search all of our PRODUCTS table (from an Airtable view) and get a custom URL with their Affiliate ID injected within the formula url, like so...
https://website.com/cart/?ref=AFFILIATE_NAME&add-to-cart=PRODUCT_ID&quantity=1
Note, I have another AFFILIATES table that identifies partners by their phone, email, and Affiliate ID.
If this is too hard, what about an option where the user enters their affiliate ID, and the app, spits out a formula, like above but the app (SOFTR, Glide, etc.) takes an entry field where they enter their ID, and then provides a custom link for all products, using that ID they enter.
What's the best way to accomplish this, so that each affiliate is seeing a different, custom/dynamic product link, based on their affiliate code?
---
The current Airtable formula to create dynamic URL is:
IF(PRODUCT_ID=BLANK(), BLANK(),"https://pickleballist.com/cart/?ref=" & {Affiliate_ID} & "&add-to-cart=" &PRODUCT_ID & "&quantity=1")