Hi,
Suppose we want to pass few values as parameter to our JavaScript function.
Here we have a JavaScript library named new_test which has GetParameters function.

Here we are passing three parameters
- Pass execution context as first parameter. (Check box)
Using getEventSource method we can get the name attribute’s value.
-
“Sample String Parameter” = string value.
- “name” = string value with schema name of the “name” attribute.
We can use the attribute’s name in our Xrm.page.getAttribute method.
The JavaScript function

The alert box

Hope it helps!




