Skip to main content

Notifications

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

Parameter need to pass on data entity in d365fo

(1) ShareShare
ReportReport
Posted on by 5,903
Hi team,
 
I have a button in form. When we clicked this button it will be connected to an entity UCL_CustCustomerV3Entity and download the data project.
 
My requirement is before downloading the data project we like to do some filer on data.
 
For example - when user clicked on the button,then we should pass the refrence of active record from the form to the button and that reference also need to filter with the table on the data entity, so that when we will EXPORT the customer master we should get specific data only not all the data  in Excel.
 
For example -
 
Suppose in form we have five customers.
CU001,CU002,CU003,CU004,CU005
 
Suppose user select the customer CU004 in the form and clicked on the button then it should export the specific customer only not all customers.
 
How we can achieve this in d365fo.
 
Kindly let me know the approach pls.
 
Thanks!
Categories:
  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 230,351 Most Valuable Professional on at
    Parameter need to pass on data entity in d365fo
    If you use DMFEntityExporter.exportToFile() to export the data, the query can be set in queryData parameter.
  • @rp@n Profile Picture
    @rp@n 5,903 on at
    Parameter need to pass on data entity in d365fo
    In which method I need to write the query in data entity and how will I pass the active record on data entity to filter the data accordingly.
     
    Kindly provide me an example pls
  • @rp@n Profile Picture
    @rp@n 5,903 on at
    Parameter need to pass on data entity in d365fo
    Thanks Mohamed.
     
    Kindly give me some reference pls. So, based on your reference, I will follow to replicate the same.
     
    Thanks in advance.
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    Mohamed Amine Mahmoudi 9,710 Super User 2024 Season 2 on at
    Parameter need to pass on data entity in d365fo
    Hi @@rp@n,
     
    I think you must add query to filter the data in your data entity.
     
    Bst regards,
    Mohamed Amine MAHMOUDI

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,349 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,351 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans