Hi everyone,
I need with following:
I need to create URL which can directly open a form in portal with two parameters (i.e. Name, Email)
Next, I need to populate URL parameters values in my form which can also be stored at the backend.
For Example:
Name //populated from URL
Email //populated from URL
other info
Any help would be appreciated
Thanks.
Solved! Go to Solution.
$( document ).ready(function() {
var URLs = new URLSearchParams(window.location.search);
$("#subject").val(URLs.get('subject'));
$("#description").val(URLs.get('description'));
});
Using above code, you can only populate value in fields.
However, If you want to first create record with this parameters, you have to use WEB API to create record then you can redirect to this record. Please refer below MS doc to create record using web api.
https://docs.microsoft.com/en-us/powerapps/maker/portals/web-api-overview
https://docs.microsoft.com/en-us/powerapps/maker/portals/web-api-perform-operations
--------------------------
If you like this post, give a Thumbs up. Where it solved your query, Mark as a Solution so it can help other people!
$( document ).ready(function() {
var URLs = new URLSearchParams(window.location.search);
$("#subject").val(URLs.get('subject'));
$("#description").val(URLs.get('description'));
});
Using above code, you can only populate value in fields.
However, If you want to first create record with this parameters, you have to use WEB API to create record then you can redirect to this record. Please refer below MS doc to create record using web api.
https://docs.microsoft.com/en-us/powerapps/maker/portals/web-api-overview
https://docs.microsoft.com/en-us/powerapps/maker/portals/web-api-perform-operations
--------------------------
If you like this post, give a Thumbs up. Where it solved your query, Mark as a Solution so it can help other people!
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.