Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Validate data from master table

Posted on by 96

Hi,

I have created a form that reads a csv file and insert data of csv file in  a table but what i want if data in csv file is same as data of master table then only it should inserted in table else throw an error message of wrong data.

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Validate data from master table

    Hi,

    Have you written c# code to insert record in dataverse table, if yes then you can use fetchxml to verify the data in Master data entity before inserting the record as shown below-

    CR17.PNG

    Permit Type is an example entity which you can replace with your entity name and add the condition. Now you can execute this fetchxml in your to check if any record is returned, if record count is >0 meaning record is present in master data, you can insert the data in table.

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Validate data from master table

    Hi Megha,

    Can you tell me what app you are using in dynamics 365? 

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

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans