45
Views
7
Comments
How to use the inbuild Url function?
Service Studio Version
11.54.86 (Build 63845)

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. 


UserImage.jpg
Duraikannan Kandasamy

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.

UserImage.jpg
Chin Kai

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...

UserImage.jpg
Duraikannan Kandasamy

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.


2025-02-07 09-54-44
Sivasakthi Munusamy

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

UserImage.jpg
Chin Kai

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..

2025-02-07 09-54-44
Sivasakthi Munusamy

Hi @Chin Kai ,

can you pls try the below function, Instead of GetEntryUrl().

GetBookmarkableURL() 

Thanks,

sivasakthi

2025-08-07 06-30-56
Amit J
Champion

@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:

  1. Store the Form Submission:

    • When a user submits the form, save the submission data into a database entity, ensuring each record has a unique identifier (SubmissionId).
  2. Configure the Admin Page:

    • Create a dedicated admin page designed to display the details of a form submission.
    • Set up this page to accept an input parameter, typically the SubmissionId, to fetch and display the corresponding submission data.
  3. Generate the Direct URL:

    • After saving the user's submission, construct a URL that points to the admin page, appending the SubmissionId as a query parameter.
    • Utilize the GenerateURL built-in function to create the absolute URL.
    • Example:

    outsystemsCopyEdit// Pseudocode for generating the URLSubmissionId = ... // The ID of the newly saved submissionAdminPageURL = GenerateURL("AdminPage", SubmissionId)

  4. Embed the URL in the Email:

    • Design the email template to include a placeholder for the direct link.
    • In the logic that sends the email, replace the placeholder with the generated AdminPageURL.

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. 



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.