Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

How to update UserName parameter in Map SRS

(0) ShareShare
ReportReport
Posted on by 76

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

  • Suggested answer
    huijij Profile Picture
    huijij 19,811 on at
    RE: How to update UserName parameter in Map SRS

    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.

  • RadekM Profile Picture
    RadekM 76 on at
    RE: How to update UserName parameter in Map SRS

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

  • RadekM Profile Picture
    RadekM 76 on at
    RE: How to update UserName parameter in Map SRS

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

  • huijij Profile Picture
    huijij 19,811 on at
    RE: How to update UserName parameter in Map SRS

    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

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,031 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,868 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans