URL Parameter - Not During Startup
I understand how I can grab a url parameter during startup with a workflow, but how can I grab a url parameter after start up when a user starts a workflow.
Example: I have some failry complicated forms our projects utilize to collect data, and I have been working to make minimize the amount of typing our users have to do in them. I am currently passing the username from the login page to the viewer in the url "&username=LoggedInUser".
All I am wanting to do is to take the username parameter and populate the a text box in my form. This saves the user time when completing the form as they don't need to enter their name.
Any ideas?
-Justin
0
-
I seem to do this everytime I post a question. Answer my own question.
None the less here is my solution. (I as trying to get the url parametet value from "username")
- I used GetBrowserUrl and saved it as a string a variable named url
- Used Assign and set object named urlParameter = url.substring(url.lastIndexOf("username=") +9)
- Tested with an alert of urlParameter.ToString() and it works great.0 -
Does Get Current User not work for you?
Otherwise, just get the Query String from the Get Browser Url, and do nameValueCollection1("username")0
Please sign in to leave a comment.
Comments
2 comments