Method Community

 

What is the URL format for viewing records?

Last post 08-03-2023 9:50 AM by Method_Inderdeep. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 07-26-2023 8:26 AM

    • thom
    • Not Ranked
    • Joined on 07-26-2023
    • Posts 2

    What is the URL format for viewing records?

    I need to be able to create a hyperlink to any contact record in Method.

    In most CRMs the URL would include the record's id e.g. http://crm.example.com/contacts/view?RecordID=123

    But the URLs in method don't seem to use the RecordID returned by the REST API.

    e.g. https://subdomain.method.me/apps/Default.aspx#/277283d8-e024-4a4d-a9e2-630a4dae7a36/c3NlUE9pZnZ4V2xaa0VEUDhRSWhKQS0t

    or /ZVlsNXBVcFo3b0NpVjljRnprVlVrUS0t or /UTZzYXl2Nk40cjN2cG5QQW9QTEk0dy0t etc etc

    How can I calculate the value to use to link to e.g. record with id = 123?

    Alternatively, how can I get the URL for viewing a record from the REST API?


  • 08-02-2023 8:45 AM In reply to

    Re: What is the URL format for viewing records?

    Hi thom,

    Can you please provide additional information on what are you trying to achieve? What is the use case scenario? The reason I am asking is to better understand the requirement so that I can guide you better.

    Regards,

    Inder

  • 08-02-2023 9:01 AM In reply to

    • thom
    • Not Ranked
    • Joined on 07-26-2023
    • Posts 2

    Re: What is the URL format for viewing records?

    I want to create a hyperlink to a record in Method that I can copy into an email or chat or other document.

    I can use the REST API if required. The RecordIDs returned in the REST API look like simple numbers (e.g. 1, 24, 356, etc). But the URL shown in my browser's address bar appears to bare no relation to this ID. It looks more like some kind of encoded binary value.

    e.g. https://mydomain.method.me/apps/Default.aspx#/12345678-1234-1234-1234-123456789012/CJKc3R345cjh3rCK546RC0t or whatever

  • 08-03-2023 9:50 AM In reply to

    Re: What is the URL format for viewing records?

    Thanks for the additional information. We don't have a specific URL that might help you achieve this but here is a workaround that you could try:

    • Create a field on the Contacts table called "ContactURL".
    • Have a AppRoutine that populates a MiURL into ContactURL if it is empty, using the Create Short Method URL action.
    • On the save button of creating a new Contact, have the screen populate that, using your approutine.
    • Have a nightly approutine that populates ContactURL for any contact that doesn't have a value in the ContactURL, using the routine.
    • Use the RestAPI to pull the value from ContactURL field for the record in question.

    Hope this helps!

Page 1 of 1 (4 items)