how can I utilized the inbuild URL function to send the URL in the email body?
For instance, user submit a form and the admin team will receive an email notification. Inside this email, it will provide the URL which once the admin team clicks on it, will direct admin to the page where it displays the form and record of what the user has submitted.
Attached is the screenshot, I tried to put in these build in function to try, but the output seems to be empty.
Hi @Chin Kai
I think those URL function are not work properly inside the mail. So create the Input variable in the mail and give the input from the action where you call and uses those variables inside the mail to create the content. Try this and let me know whether its work fine or not.
Thank you,
Duraikannan.
Hi, yes I placed them in the variable and it works... however its not showing the correct URL and the form ID is not passed on to it. the url given when I clicked direct me to an error page...
Can you able to share what your expected Link and what it Give. then what type of error you getting??
It'll helpful to understand what going on.
Hi @Chin Kai ,
Can you please use the below Function , If it helps.
GetEntryURL()
(or)
can you refer the below documentation and forum discussion, If it helps.
https://success.outsystems.com/documentation/11/reference/outsystems_language/logic/built_in_functions/url/
https://www.outsystems.com/forums/discussion/61404/getentryurl-in-reactive-web/
Thanks,
Sivasakthi
Hi Siva, yes I have started on this but the output is still not the same. For instance the actual website I want to receive is:
https://thisIsDemo.outsystemsenterprise.com/Example/Customer?CustomerNameId=14
However, based on the getEntryURL Function, it returns: https://thisIsDemo.outsystemsenterprise.com/Example/screenservices/Example/CustomerPage/CustomerName/ActionGetURL
I am puzzled on how to achieve the url on top with the ID and correct domain..
can you pls try the below function, Instead of GetEntryUrl().
GetBookmarkableURL()
sivasakthi
@Chin Kai,Good Day To automatically include a direct link in the admin notification email that leads to the specific form submission details in OutSystems 11, follow these steps:
Store the Form Submission:
Configure the Admin Page:
Generate the Direct URL:
outsystemsCopyEdit// Pseudocode for generating the URLSubmissionId = ... // The ID of the newly saved submissionAdminPageURL = GenerateURL("AdminPage", SubmissionId)
Embed the URL in the Email:
Important Considerations:
Environment Hostname Configuration: Ensure that your environment's hostname is correctly configured in Service Center. This ensures that the GenerateURL function produces absolute URLs that are valid and accessible.