How do I use a dataverse table to validate a portal basic form?

  • How do I use a dataverse table to validate a portal basic form?

    Posted by DSC Communities on July 26, 2022 at 1:56 pm
    • Emily Lederer

      Member

      July 26, 2022 at 1:56 PM

      I have a basic form on my portal that needs to check two columns in a dataverse table
      1. the user types an item number in the form field
      2. when they tab out of the field the form either shows an error message or let’s them continue with the form.
      3. the form field need to take the users item number and search for it in the table
      4. then check the next column to see if that item number can be deleted (yes/no)

      I am pretty sure this needs to be done using JQuery, but I can not figure out how to reference the table in the code. I have looked all over and can’t find anything regarding the dataverse table. I can connect tables using the lookup column, but I need it on a normal number column.

      I have this http address (can’t show the full address here) :

      dynamics.com/api/data/v9.2/$metadata#cr598_positiondatas

      I have tried this code:

      $(document).ready(function() {
          $("#pn_deactivatepositionnumber").blur(function(){
             $.ajax({
                 method: "GET",
                 url: "",
                  sucess: function(result) {
                      console.log(result)
                  }
             });
          });
      });

      I have also tried:Ā 
      get element by id (but this only grabs items already in the html file), src() and source: [].
      I have also tried using the urls, ids, classes, making a power automate and workflow, business process flow, condition columns, etc. none were able to connect it (or I am just not doing it right.Ā 

      Am I supposed to change the table into another file type and then use ajax? Please if anyone even has a guess I would really appreciate it!

      ——————————
      E L
      new portal apps user
      ——————————

    • S W

      Member

      August 17, 2022 at 2:46 PM

      Hi Emily

      I have a similar requirement to this that I’m looking to implement. Were you able to find a way to check data in Dataverse from the portal form prior to submission to a table?

      Thanks

      ——————————
      S Worrell
      ——————————
      ——————————————-

    DSC Communities replied 3 years, 8 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘How do I use a dataverse table to validate a portal basic form?’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!