Creating URLs

You can create URLs that link directly to documents, folders, and forms in the Laserfiche app. Document and folder URLs can also directly link to the web client.

Below are some examples of the different syntax used for each type.

Web Client URL: http://laserficheserver.laserfiche.com/laserfiche/index.aspx?db=myrepository#id=141;view=pages

Laserfiche App URL: http://mobilelink.laserfiche.com/redirect?url=laserficheappserver/mobile/index.aspx?db=myrepository#id=141;view=pages

Forms URL: http://mobilelink.laserfiche.com/redirect?forms=true&url=laserficheformsserver/Forms/mystartingform#LFMS=http://laserfichemobileserver/mobile

Note: You will need to encode all URL slashes with %2F.

Note: In Laserfiche Mobile 9.3 and later, mobile links that use laserfiche as the virtual directory in the URL will be automatically redirected to the intended destination.

Note: Previously used URL links that begin with lfmobile or lfmobileforms will still open the appropriate document or form, but they may not be hyperlinked with your email client (Gmail, Outlook, etc).

Parameters for documents and folders

By default the URL that opens an imaged document in the Laserfiche app has the following syntax:

  • http://mobilelink.laserfiche.com/redirect?url=servername/mobile/index.aspx?db=repositoryname#id=id;view=pages

Where servername is the name of the server where the Laserfiche Mobile Server is installed, repositoryname is the Laserfiche Repository, and id = Entry ID.

The view=pages portion of the syntax opens the imaged document in the Document Viewer. You can replace "view=pages" with any of the following parameters to have the document open differently.

  • view=browse: show a folder in the Folder Browser
  • view=metadata: show an entry in the metadata view
  • view=pages: show a document in the Document Viewer
  • view=pages;page=pagenumber: show a specific page in a document in the document viewer
  • view=newroot: show a folder as the root in the folder browser

You can also apply other parameters to the URL to open electronic documents, quick searches, or other searches.

  • Electronic document: http://mobilelink.laserfiche.com/redirect?url=servername/mobile/ElectronicFile.aspx?db=repositoryname&id=id
  • Quick search: http://mobilelink.laserfiche.com/redirect?url=servername/mobile/index.aspx?db=repositoryname#quicksearch=searchquery;view=search
  • Search query: http://mobilelink.laserfiche.com/redirect?url=servername/mobile/index.aspx?db=repositoryname#search=searchquery;view=search

Parameters for Forms

You can create a URL to a starting form, a task, or a draft. Each URL contains different syntax. Type the URL in an Internet browser or send it in an email. Pressing the URL will open the Laserfiche app.

Supported Internet Browsers:

  • iOS: Safari & Firefox
  • Android: Android Browser & Firefox
  • Windows: Internet Explorer & Firefox

Starting Form

The following is an example URL linking to a starting form:

http://mobilelink.laserfiche.com/redirect?forms=true&url=ProcessStartingFormURL#LFMS=AppServerURL

To create a URL that directly links to a starting form

  1. Begin with http://mobilelink.laserfiche.com/redirect?forms=true&url=.
  2. Navigate to the starting form in Laserfiche Forms using an internet browser. Copy the URL.
  3. Paste the URL after http://mobilelink.laserfiche.com/redirect?forms=true&url=.
  4. Type #LFMS= and enter the Laserfiche Mobile Server URL. This is the URL used when signing into the app. You will need to encode the Mobile Server's URL slashes using %2F.

    Note: The AppServerURL syntax is not required. If this syntax is not included, the Mobile Server the user is currently signed in to will be used. If the Mobile Server the user is currently signed in to does not have the appropriate Forms server configured to open the specific starting form, the user will be asked to enter the Mobile Server containing the Forms server configuration for that specific starting form.

Example: http://mobilelink.laserfiche.com/redirect?forms=true&url=myformsserver.laserfiche.com/Forms/mystartingform

Example: http://mobilelink.laserfiche.com/redirect?forms=true&url=myformsserver.laserfiche.com/Forms/mystartingform#LFMS=http:%2F%2Fmyappserver.laserfiche.com%2Fmobile

You can also auto populate form fields using variable names and values as parameters in the URL syntax.

Add a question mark after the starting form syntax and enter the following syntax after the question mark in the URL: variable1=value1&variable2=value2

  • Replace variable 1 and variable 2 with the variable names of the fields you want to populate.
  • Replace value 1 and value 2 with the values you want in those fields.

Append other variables by inserting the & symbol followed by the variable name.

Example: http://mobilelink.laserfiche.com/redirect?forms=true&url=myformsserver.laserfiche.com/Forms/mystartingform?variable1=value1&variable2=value2#LFMS=http:%2F%2Fmylfmserver.laserfiche.com%2Fmobile

Task

The following is an example URL linking to a Forms task:

http://mobilelink.laserfiche.com/redirect?forms=true&url=FormsServerURL/TaskURLinForms

To create a URL that directly links to a Forms task

  1. Begin with http://mobilelink.laserfiche.com/redirect?forms=true&url=FormsServerURL(do not include the last /Forms text in the FormsServerURL).
  2. Navigate to the task in Laserfiche Forms using an Internet browser, then press F12 to enter the Developer Tool view.
  3. Inside the HTML iframe title tag, double-click the text that begins with /Forms/form and a block of text will be highlighted for you. Copy it.

  4. Paste the copied text into the URL after http://mobilelink.laserfiche.com/redirect?forms=true&url=FormsServerURL.

    Example: http://mobilelink.laserfiche.com/redirect?forms=true&url=myformsserver.laserfiche.com/Forms/form/avsubmission?instanceId=28&routingResumeId=7e8410c3-e81d-405d-8ff1-fb14c8e6005a&submissionId=&RemoveHead=true&clientHandlesRedirect=true&readonly=false

    The syntax starting with /Forms was copied from the Developer Tools view.

Draft

The following is an example URL linking to a Forms draft:

http://mobilelink.laserfiche.com/redirect?forms=true&url=FormsServerURL/Form/resume/FormID/DraftID#LFMS=AppServerURL

To create a URL that directly links to a Forms draft

  1. Begin with http://mobilelink.laserfiche.com/redirect?forms=true&url=.
  2. Navigate to the draft in Laserfiche Forms using an Internet browser. Copy the URL.
  3. Paste the URL after http://mobilelink.laserfiche.com/redirect?forms=true&url=.
  4. Remove ?hideHeader=true from the end of the URL.
  5. Type #LFMS= and enter the Laserfiche Mobile Server URL. This is the URL used when signing into the app.

    Note: You will need to encode the Mobile Server's URL slashes using %2F.

    Note: The AppServerURL syntax is not required. If this syntax is not included, the Mobile Server the user is currently signed in to will be used. If the Mobile Server the user is currently signed in to does not have the appropriate Forms server configured to open the specific starting form, the user will be asked to enter the Mobile Server containing the Forms server configuration for that specific starting form.

Example: http://mobilelink.laserfiche.com/redirect?forms=true&url=myformsserver.laserfiche.com/Forms/Form/resume/1/15#LFMS=http:%2F%2Fmyappserver.laserfiche.com%2Fmobile

For more information, see the URLs topic in the Laserfiche User Guide help files. Note that only the parameters mentioned in this help topic apply to app URLs.