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);
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.
Anyone any idea? Still I haven't figured out how to update the values inside username object.
The expected type is class not string thats why i have trouble with it.
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
André Arnaud de Cal...
292,031
Super User 2025 Season 1
Martin Dráb
230,868
Most Valuable Professional
nmaenpaa
101,156