I will have a variety of URLs that all contain the same Query Parameter:
https://www.example.com/landing-page/?aid=1234
I would like to extract the "1234" by searching for the "aid" query parameter in the URL.
The javascript will run in Zapier:
Example javascript block in Zapier
Zapier notes: What input data should we provide to your code (as strings) via an object set to a variable named inputData?
I don't have much experience with javascript or coding in general, but the end result would be the 4-digit "aid" value that I would then reference when posting via webhook to an API.
edit: I checked the similar answers and appreciate the links however I am not sure how to utilize "inputData" and "url" in Zapier with the provided answers.