Announcements
How can I change the value of a user in this Map?
Map reportParametersMap = srsReportRunService.createParamMapFromContract(srsReportRunController.parmReportContract()); // reportParametersMap.insert('UserName',custInvoiceJour::findRecId(_custRecId).CreatedBy); Microsoft.Dynamics.AX.Framework.Reporting.Shared.ReportingService.ParameterValue[] parameterValueArray = SrsReportRunUtil::getParameterValueArray(reportParametersMap);
Hi,
DId you try to remove the old key, then reinsert with the new key.
reportParametersMap.remove("UseserName"); // remove key reportParametersMap.insert("UseserName", ""); // reinsert new key with value
The expected type is class not string thats why i have trouble with it.
Anyone any idea? Still I haven't figured out how to update the values inside username object.
Then if it expected the class type, it won't change. You can try to find any workarounds, and if you find your solution you can share it back to help others with similar issue.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 288 Super User 2026 Season 2
Martin Dráb 270 Most Valuable Professional
Anton Venter 217 Super User 2026 Season 2