Notifications
Announcements
No record found.
Hi,
I want to add a custom function in ER.(Get Current User)
Like in the docs:
https://docs.microsoft.com/pl-pl/dynamics365/fin-ops-core/dev-itpro/analytics/general-electronic-reporting-formulas-list-extension?toc=/dynamics365/commerce/toc.json
But now the class ERExpressionString don't exist, we have a class ERExpressionStringBase but this class is internal.
I've tried add a interface ERIExpressionString but my function is not visible in ER.
Is function extension are not possible now?
Hi Krychul,
Can you elaborate?
Is there a standard GER config that you are using for this purpose?
I creating a new GER config and a requirement is to show a user id that run this report.
I thought it would be possible on the basis of these docs.
If you define destination for generated report on "Electronic reporting jobs", the user who run the report will be published there as "Created by"
For example, standard GER config will be stored on "Electronic reporting jobs" and they will show who create this file.
Do you want to have user id as field in the report that you have generated? If yes, you can try to add 'User input parameter' on you custom config model mapping and connect this field your report.
Extending the default ER functions seems interesting, although for you problem probably there is already an easier way to get current user.
Anyways what I would do is to take a look at other default functions because it seems the documentation is outdated. For example the class "ERExpressionGetCurrentCompany"
Alireza Eshaghzadeh
I need to display User Id on my report. The client does not want the parameter because we can choose another user and it should be the one who started the report. The parameter will be added to the report if no other method is found.
Arcadi
I look on this method. method ERExpressionGetCurrentCompany extends ERExpressionStringBase .ERExpressionStringBase is internal. I've tried to implement a interface ERIExpressionString but function didn't show on the list in ER.
I understand. In ER config, You can get try to get current user who starts the report from class HcmWorkerLookup.CurrentWorker
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 456 Super User 2025 Season 2
Martin Dráb 429 Most Valuable Professional
BillurSamdancioglu 239 Most Valuable Professional