Skip to main content

FieldLogs

Using Postman API Platform for Mass Export of Templates

Postman is an application used to send HTTP requests.

Postman Installation

Create an account following the instructions on https://www.postman.com

Mass Export Procedure

  1. Select the dropdown near Workspace.

    dropdown_near_workspace.png
  2. Select My Workspace.

    my_workspace.png
  3. Click New.

    New.png
  4. Select HTTP Request.

    HTTP_Request.png
  5. Build the HTTP Request link as shown below.

    The following link consists of fixed values and variables.

    The text highlighted in yellow are variables, and the other values are fixed.

    You can check the variables through Enterprise settings.

    HTTP_link.png
  6. Enter the HTTP Request created in Step 5 in the GET field.

    GET_field.png
    1. The following parameters are required to build the HTTP request.

      Entry name

      Description

      entityId

      ID of the account

      customerId

      ID of the user

      buyerId

      Username

      pwd

      Password

      xml

      This is the key which has the content of SearchQueries and a list of Reading references

    2. To get the value for entityId, go to FieldLogs, Console and type info() as shown below.

      info.png
    3. Copy and Paste the entityId in the key column.

      entity_id.png
      copied_entity_id.png
    4. Enterprise DNS alias When you want to export a Template from one environment to another environment, you need to change the Enterprise DNS alias to make a servlet call.

      To know the Enterprise DNS alias, go to FieldLogs, go to Console, and type info()

      Enterprise_DNS_alias.png
    5. Copy and Paste the code in highlighted place as shown below.

      copied_enterrpise_DNS_alias.png
    6. To add the Suite and Package details in the xml, obtain the values from Template Information Editor.

      You need to enter the Suite and Package name for the selected Template.

      Selected_template.png

      Enter the values in xml column as shown below.

      xml_column.png

      Here the filter type "5" is for Suite and filter type "6" is for Package.

      Filter_types.png

      You can Export a specific Template by using filter type "7" in the search query as shown below.

      Template_query.png

      This is a sample of an HTTP Request to Export a specific Template.

      http://localhost:9090/GridWebApp//api/latest/reading/TemplatesMassExport?entityId=4c07d8707e103de902b20816e79b8032&customerId=FieldLogs&xml=<TemplateToJsonQuery><searchQuery tktype="1" hitsPerPage="100" startIndex="0" type="1"><filter type="7"><value><![CDATA[G57-72-62-00M001-M0002]]></value></filter></searchQuery></TemplateToJsonQuery>&buyerId=your buyerId@fieldlogs.com&pwd=your password.

      This is a sample of an HTTP Request for Suite and Package.

      https://web-grid3-workenv.grid-trekea.com/GridWebApp/api/latest/reading/TemplatesMassExport?entityId=43080c80881fb0ed0d6c612ed1fad0c1&buyerId=your buyerId.com&pwd=your password&customerId=FieldLogs&xml=<TemplateToJsonQuery><searchQuery tktype="1" hitsPerPage="100" startIndex="0" type="1"><filter type="5"><value><![CDATA[FL]]></value></filter><filter type="6"><value><![CDATA[Test-3]]></value></filter></searchQuery></TemplateToJsonQuery>

  7. Click Save.

    Save_button.png
  8. Click Send.

    Send_button.png

    Batch Operations get generated.

    Batch_operations.png