Hi @Rakesh26 ,
For your first question, do you want to submit your HTML form data using JavaScript within your PowerApps Portal?
Based on the needs that you mentioned, I think JavaScript code could achieve your needs. Firstly, you need to embed your HTML form into a web page in your Portal using JavaScript code.
After that, you could use the JavaScript (jQuery) code to submit your form data:
$('#form_Id').submit()
Please check and see if the following blog would help in your scenario:
https://debajmecrm.com/2020/03/11/quick-tip-save-a-record-in-powerapps-portals-using-custom-button-on-entity-form/
More details about using JavaScript code in Portal, please check the following article:
https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/add-custom-javascript
In addition, if the HTML form data would be saved to your own server, I think $.ajax() function would achieve your needs. Please take a try with the following function in your PowerApps Portal Web Page:
$.ajax({
url: 'Type your Target Server URL Here',
method: 'POST',
data: {
property1: "xxxx",
property2: "xxx",
....
},
dataType: 'json',
success: function(data, status, xhr){
console.log("Ajax request successfully: " + data)
},
error: function(error){
console.log("Ajax request fail: " + error)
}
})
For your second question, do you want to create SP Site Page, then display data from your CDS Entity? Based on the needs that you mentioned, I afraid that there is no direct way to achieve your needs. There is no Web Part supported in SP Site Page to retrieve data from CDS Entity.
As an alternative solution, you could consider generate a canvas app (Tablet Lauout) based on your CDS Entity, then you could embed your canvas app into your SP Site Page through "Microsoft PowerApps" Web part or <Embed> web part. You could preview these records from your CDS Entity through the embedded canvas app in your SP Site Page.
Please check and see if the following article would help in your scenario:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/embed-apps-dev
Best regards,