client APIs 'Xrm.Page.context.getQueryStringParameters' is deprecated with
formContext.data.attributes. I wan to have an example to get Query String Parameters value from formContext.data.attributes.
*This post is locked for comments
client APIs 'Xrm.Page.context.getQueryStringParameters' is deprecated with
formContext.data.attributes. I wan to have an example to get Query String Parameters value from formContext.data.attributes.
*This post is locked for comments
Hi amlesh,
I was able to access the form parameter as using the below code. Hope this helps.
item.getName() gives the name of the parameter and item.getValue() gives the values that are passed to that parameter
var c = formContext.data.attributes;
c.forEach(function myfunc(item, index) {
alert(item.getName() + " " + item.getValue());
});
Gentlemen,
I experienced issues similar to yours and here is solution - butenko.pro/.../
@SRISAI Even i am facing same issue
Hi Shaminderpal
when i use Xrm.Utility.getGlobalContext().getQueryStringParameters()
Console output: {appid: "xxxxxx-xxxxxx-xxx-xxxxx", data: "xxxxxx"}
data= displays the passed parameters under custom parameters of Web Resource Properties
___________________________________________________________________________________________________________
[But in unified interface it behaves different]
Console output: {entityTypeName: "contact", id: "{xxxxx-xxxxxx-xxxxx-xxxx-xxxxx", pageType: "entityrecord"}
I donot see anythinh that says data.
Can someone help me fixing this issue in Unified interface? in old ui app the same code works fine.
Thanks Shaminderpal
Hi all,
Shaminderpal Singh's solution was all that worked for me. I have had continued issues getting query string parameters via formContext.data.attributes. I will post back once i have had success but i will be adding
Shaminderpal's solution into my scripts for now.
Hello Amleshsng,
any updates on this how passed query string parameters and read it using formContext.data.attributes ?
Thanks in Advance.
viswa
Hi ,
You can get it using below:
Xrm.Utility.getGlobalContext().getQueryStringParameters()
-Shaminder
Hi,
I have some doubt I really could not found any documentation how to use it , try with this -
formContext.data.attributes("AttributeName")
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156