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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

How to get filename value as a variable during the electronic reporting import?

(0) ShareShare
ReportReport
Posted on by 38

Hi guys, 

during the import file via electronic reporting I need to get filename as a variable. I need this variable to use it in some functions and also to save this value into to table field. 

I could not found which functionality I can use for this puprose?

Have someone experience with it?

Thanks in advanced 

I have the same question (0)
  • Suggested answer
    ergun sahin Profile Picture
    8,826 Moderator on at

    I'm not experienced with ER, but I've seen before that we can change the filename. In this case, if you can give the filename you want, you already know the value.

    dynamics365fo.wordpress.com/.../

    It is not exactly the approach you want, but it can be considered as an alternative if there is no more logical response from other friends.

  • Veera Potula Profile Picture
    15 on at

    Hi, did you find a way to get import filename? I have a similar requirement

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at

    Hi KlaraC and Veera,

    I haven't worked on ER. But I have came across similar situation. So what can be done is you need to take access of the folder where these files are getting imported from x++ using FileI/OPermission class. And then on every new import(number of files before and after can be counted) you need to read the file name using x++ and save that in table. We have lot of functions for this. Kindly check in this way.

    Thanks

    Bharani Preetham

  • Phil Matthews Profile Picture
    98 on at

    KlaraC , did you manage to find a solution to this? I have a similar requirement and I'm not sure how to achieve it.

    Thanks.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 521 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 438

#3
Adis Profile Picture

Adis 261 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans