SBX - Search With Button

SBX - Forum Post Title

Get Default Parameter Value

Dynamics 365 for Finance and Operations Forum

Sharoze Khawar asked a question on 13 Jun 2019 11:06 AM

Question Status

Unanswered

I want to get the default paramter value (Destination: Email) set by Microsoft of report in report DP class. 

Reply
Blue Wang responded on 14 Jun 2019 3:10 AM
My Badges

Hi Sharoze,

In Visual Studio, enter your report DP class first.

Look at the code and find SRSReportParameterAttribute. For example:

[
    SRSReportQueryAttribute(querystr(HcmBirthday)),
    SRSReportParameterAttribute(classstr(HcmBirthdayContract))
]

Then enter your Contract class, which has some default paramters, and you can view it.

Reply
Sharoze Khawar responded on 15 Jun 2019 5:22 PM

parameter is not created by myself. It is the parameter that is created by microsoft and it has no contract class. It is displayed in the form where paramters are shown. As you see my custom parameters are shown in Patamter box while the email paramter is shown in destinaton box. It's a microsoft created paramter.

Reply
Blue Wang responded on 16 Jun 2019 7:59 PM
My Badges

Hi Sharoze,

Which report DP class do you use?

Query in AOT and follow my steps. You can find the default settings.

Reply
Sharoze Khawar responded on 17 Jun 2019 12:55 AM

I agree with you that i can find the default paramters from contract class. I followed your steps but did not get a vlaue.

Reply

Which report is this ?

Reply
Sharoze Khawar responded on 20 Jun 2019 12:15 AM

This is the default report of D365. You can see this Email Field after the parameters of every report.

Reply

SBX - Two Col Forum

SBX - Migrated JS