Skip to main content
March 4, 2024
Question

On Click of URL In EMAIL I need to retrieve the respective record from the grid in the site

  • March 4, 2024
  • 15 replies
  • 0 views

I am having requirement to show up only the respective record data from the grid in the Site. I have used a!urlForSite(sitePage: givensiteofMyapp) to navigate to the site but to retrieve the exact record from the grid how I need to fetch those details. Kindly provide any suggestion

15 replies

venkatrea696188
March 4, 2024

We need more details about your scenario , As far as i understood , You got a grid in a site page and you are providing a link in every grid row ,When user clicks on it you are  using urlsite and taking it to another page where you want to show only data of that particular row.

Save the identifier of that row ,Pass it as a url parameter and use it in querying and displaying.Or you achieve different thing??

March 4, 2024

Hi,

Thanks for the Reply.

I am having a URL only in Email. On click of the URL it navigate to the Site. On that we are having Read only grid. We are not using URL in each of the grid.

Requirement id On click of the URL it is navigating to the Site But i want to retrieve that particular record from the list of records in the grid using the primary key. Here on a!urlForSite(sitePage: givensiteofMyapp) i don't find any parameter in the function to pass the primary key value apart from the sitePage

venkatrea696188
March 4, 2024
i don't find any parameter in the function to pass the primary key value apart from the sitePage

What do you mean by this ? Urlforsite() aren't you able to see "urlparameters" parameter

But I want to display the record data from the list of grid on click of the url

On click of link you need to open a site page and on site you want to show data in grid format?

konduruc733182
March 4, 2024

Hello [mention:bfd227c27aea444eb49c1c9c963d1ba5:e9ed411860ed4f2ba0265705b8793d05] 

 a!urlForSite(sitePage: givensiteofMyapp)

You need to use urlForRecord() and map the recordType and recordId and update the URL from tempo/records/item with your site address site-name/page/home/record/

March 4, 2024

Hi [mention:2df2892a4df7486f9775b4d2f0e405fd:e9ed411860ed4f2ba0265705b8793d05] ,

Thanks for the Reply.

urlForRecord() navigating to the Records in the Tempo but my requirement is to navigate to the site from their I need to retrieve the exact record data from the list of data in the read only grid

konduruc733182
March 4, 2024

You will have to replace the url parts with your site info as I have mentioned above in my reply above.

substitute(
urlForRecord(
 recordType:yourRecordTye,
 recordIds:yourIdentifiers
 ),
 "Tempo-URL"(current URL that you see when you click on urlForRecord),
 "SiteUrl"(Which you see when you open any summary)
 )
 

mathieud0001
March 4, 2024

Please see response in this thread: community.appian.com/.../129535