web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to update UserName parameter in Map SRS

(0) ShareShare
ReportReport
Posted on by 178

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);

I have the same question (0)
  • huijij Profile Picture
    19,813 on at

    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

  • RadekM Profile Picture
    178 on at

    The expected type is class not string thats why i have trouble with it.

  • RadekM Profile Picture
    178 on at

    Anyone any idea? Still I haven't figured out how to update the values inside username object.

  • Suggested answer
    huijij Profile Picture
    19,813 on at

    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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288 Super User 2026 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 270 Most Valuable Professional

#3
Anton Venter Profile Picture

Anton Venter 217 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans