To call Web API we will need to call webapi.safeAjax function which accepts one argument ajaxOptions which is a standard object with properties for ajax request. Please refer the Microsoft documentation In this snippet, we are referring all the libraries required for SurveyJS to render the data and store responses provided by the user in an object (which we use to store in d365 CE tables). We have created a div element to render the form on the portal and another div element to show a customized message on the portal. In this snippet - on document.ready, we are calling a function getSurveyData() to render the data on to the portal, initializing the methods (out of the box in SurveyJS) to capture the data on Complete button click and Next page button click on the form. To render the data, we are making a Web API call to the Dynamics from PowerApps Portals and passing that JSON object into Survey object. Refer SurveyJS documentation for more details. In this snippet - we have created me
Dynamics 365 CE [to host the forms data] For this scenario, we have created below Table and Column components. Table - Forms Payload Columns - SurveyJS Payload and SurveyJS Response SurveyJS Payload: column to store the JSON object of an assessment form. SurveyJS Response: column to store the responses provided from the PowerApps Portals. We use the JSON object available in the "SurveyJS Payload" column from the PowerApps Portals using Web API to generate SurveyJS form to provide responses by the end user. SurveyJS and PowerApps Portals [Part 3]