You need to sign in to do that
Don't have an account?
lavan l 5
Getting query srting of URL in apex trigger
When i click on save button through this below url:
https://ap1.salesforce.com/001/e?retURL=%2F001%2Fo
In trigger i am trying to get the full url including query parameters, even though it has retURL as query parameter i am getting null when i use URL.getCurrentRequestUrl().getQuery().
On click of save button i standard page, I want to get the query string in trigger please reply if any one know how to get it.
Thank you.......
https://ap1.salesforce.com/001/e?retURL=%2F001%2Fo
In trigger i am trying to get the full url including query parameters, even though it has retURL as query parameter i am getting null when i use URL.getCurrentRequestUrl().getQuery().
On click of save button i standard page, I want to get the query string in trigger please reply if any one know how to get it.
Thank you.......
Why not create a custom field on the object and put the value of the parameter in there?
All Answers
What is your use case? There might be another solution.
Why not create a custom field on the object and put the value of the parameter in there?
If the value is the same all the time or from a related object, then you could use a formula field to get the value. Then you can remove it from page layout, so its hidden.