[dynamic_help_sidebar root="leads"]

Integrate Razorpay with LeadSquared

1. Feature Overview

This connector captures leads and activities (such as payment data, payment status, etc.) in real time from your Razorpay account to LeadSquared. Once the leads and activities are synced, you can leverage LeadSquared’s CRM features to nurture and convert your leads.

Note: This connector only captures leads and activities from your Razorpay account in your LeadSquared account. If you want to generate Razorpay payment links directly from your LeadSquared account, refer to Razorpay Payment Link Generation in LeadSquared.

 

2. Prerequisites

  • You must be the Administrator of your LeadSquared account.
  • You must have an active Razorpay account.
  • This is a paid feature. To enable it, reach out to your account manager, or write to support@leadsquared.com.

 

3. How it Works

To push lead and activity data from Razorpay to your LeadSquared account, configure the Razorpay connector instance. Once configured, enable the connector sync.

During configuration, a webhook URL is generated in LeadSquared. Copy this URL and set it up in your Razorpay account. Once it’s set up, the activity and lead capture process are initiated.

For e.g., let’s look at two use cases –

  • New Lead – John does not exist as a lead in LeadSquared. On a third-party portal, he makes a payment through Razorpay. Once the payment is completed, John is captured as a new lead in your LeadSquared account, and an activity is posted with the payment details.
  • Existing Lead – Paul is an existing lead in LeadSquared. On a third-party portal, he makes a payment through Razorpay. Once the payment is completed, a payment activity is posted against Paul in LeadSquared.

 

4. Installation

You must first install and configure the Razorpay connector.

  1. Navigate to Apps>Apps Marketplace.
  2. Search for Razorpay (Payment Notifications), and click Install.
    • Alternatively, you can find the connector on the left panel, under Payment Gateway.
  3. Once installed, hover your cursor over , and click Configure.

Razorpay install

4.1 Configure the connector

Once you’ve installed the connector, on the Configure Razorpay (Payment Notifications) pop-up, configure the connector access for the non-Admin users in your account. Only those users for whom access is granted can view and access the connector (under the Apps main menu).

  1. Select if you want to grant Connector Access that’s Based on Role or Advanced (User Level).
    • Based on Role – From the Specify Roles dropdown, select the LeadSquared user roles that can use the connector.
    • Advanced (User Level) – From the Advanced (User Level) dropdown, select a user boolean field. Based on the value entered in the selected boolean field, the user can access the connector (e.g., for the user Sam, if the “Is Employee” boolean user field contains the value “Yes”, then this user can access the connector).
  2. Once you’re done, click Save Details. To continue the configuration, refer to the below sections.
Note: By default, all Admin users will have access to the connector.
Razorpay config

 

5. Admin Configuration

To continue the connector configuration, navigate to Apps>Razorpay (Payment Notifications).

Razorpay admin config

5.1 Basic Settings

Enter the following details –

Property Description
Lead Source Enter the lead source through which the leads were captured (e.g., Razorpay, email campaign, etc.). This detail will be displayed on the Lead Details page, under Lead Source.
Default Country Code If the lead’s mobile number is captured without a country code, then the default country code that’s selected from the dropdown will be added to the lead’s mobile number.
Select Time Zone The time zone followed in your Razorpay account.
Lead Capture Search By Criteria This is used to identify existing leads who made the payment using Razorpay.

This is also used to avoid creating duplicate leads. You must select one unique lead field (e.g., email Id, mobile number, PAN number, etc.) as the search key. This will be used to identify the leads pushed from Razorpay.

Lead Capture Secondary Search By Criteria If lead identification and capture through the primary Search By criteria fails, it will be re-attempted using the secondary Search By criteria.
Select User to Notify on Failure If there is an error identifying and capturing leads who made the payment, the selected user will receive a failure message via email. You can select a user from the list of all the users available in your LeadSquared account.

To know more about the type of errors, please refer to Error Notifications.

Enable Notification Enable the Checkbox checkbox to ensure notification emails are sent to the selected user when there’s a failed query.

Once you’re done entering all the details, click Save & Next.

Razorpay Basic Settings save

5.2 Entity Options

Define the sync behavior of the connector when payment activities and leads are captured.

5.2.1 Lead/Contact Entity

Based on the Lead Capture Search By criteria (email Id, phone number, etc.), LeadSquared identifies and captures leads from your Razorpay account. Lead capture is enabled by default, and it cannot be disabled.  The following options are available to configure the connector’s Sync Behaviour –

  • Capture (Create and Update existing) Record – Leads that do not exist in your LeadSquared account will get created. Leads that currently exist in your LeadSquared account will get updated.
  • Create only new record – Leads that do not exist in your LeadSquared account will get created.
  • Update only existing record – Leads that currently exist in your LeadSquared account will get updated.

Note:

  • A lead is classified as a new lead or an existing lead based on the Lead Capture Search By Criteria you’ve selected in the previous section.

5.2.2 Mapping

On the Mapping screen, the Razorpay system fields mapped to the corresponding LeadSquared lead/activity fields are visible. This mapping is carried out by default. If required, you can change or update the default field mapping.

  • To provide a default value for any field, click  , enter the value under Default Value, and click Google.
    • If the data provider doesn’t send data for any lead/activity field, then the default value will get assigned to that specific field. But if the field already has an existing value, then the default value will be ignored.
  • To disable lead data capture for any field, disable the Zoom slider.
  • You can also mark and update a unique lead field as the search key from this screen, by clicking unique icon.
  • To create a custom Razorpay field, click the Add Custom button.
    1. Once this field is created, you must map it to the relevant LeadSquared lead field.
    2. After the field is mapped, to save the custom field, click Google.
    3. To delete a custom field, click .
Note: To map the payment data to a custom activity, select the activity type from the Activity Field Mapping screen.
Razorpay lead mapping

 

5.2.3 Activity Entity

To post payment activities on leads, against Activity Entity, enable the Slider slider. The following options are available to configure the connector’s Sync Behaviour when activities are posted in LeadSquared –

  • Capture (Create and Update existing) Record – New activities will get posted to the lead in LeadSquared, while existing activities will get updated.
  • Create only new record – Only new activities will get posted to leads in LeadSquared.
  • Update only existing record – Only existing activities on the leads captured will get updated in LeadSquared.

By default, your payment data is mapped to the “Razorpay” activity.

Note: An activity is classified as a new activity or an existing activity based on the Lead Capture Search By Criteria you’ve selected in the previous section.
Once you’re done, click Save & Next.

Razorpay activity mapping

5.3 Generate the Webhook URL

After you provide basic details and finish field mapping, a custom webhook URL is generated. To automate lead and activity capture, copy this URL and set it up on your Razorpay account. To know more, refer to Set Up and Edit Razorpay Payments Webhooks.

After you’ve set up the webhook, click More Actions, and enable the sync job. This ensures payment data from Razorpay will be pushed to LeadSquared using the webhook.

Razorpay webhook url

Note: To view logs of all the sync jobs that have taken place, from the More Actions dropdown, click View Logs.

To configure the webhook URL, and enable other settings required to push leads from your Razorpay account to LeadSquared, refer to the Setup Instructions –

Razorpay setup

 

6. View Logs

Here, you can view logs of all the sync jobs that have taken place. View New Events (New Leads and Activities), Updated Events (Updated Leads and Activities), and Errors (when capturing leads and activities).

  1. Navigate to Apps>Razorpay (Payment Notifications).
  2. From the More Actions dropdown, click View Logs.
  3. You can filter the logs by selecting a date range (Today, Last 7 Days, This Month, and Last Month), by selecting the Job Status (“All”, “Success” and “Failure”), and by selecting the Sync Status (All, Error, and Success).
  4. You can view the sync status of the following events –
    • New Events – List of all the new leads and activities that have been created in LeadSquared during the selected date range.
    • Updated Events – A list of all the –
      • Duplicate leads that were created with the same Search by Criteria value (e.g., with the same Email Id, Mobile Number, etc.).
      • Duplicate payment activities posted on the same lead, using the same Search by Criteria value (e.g., with the same Email Id and the same Payment Id, etc.).
      • Leads and activities that previously contained errors, which were fixed and synced successfully.
    • Errors – The list of leads and activities that have not been captured due to mapping errors (e.g., when a boolean field is mapped to an integer field, etc.).
  5. To view the Sync Response details, under Request ID/Sync Job ID, click the Id.
    • Under the right panel, you can view the response status, the API URL, the request, and the response.
    • The responses that are successful will contain the details of the leads that have been pushed by Razorpay.
    • To view the lead capture response under Sync API Response, Leads Updated and Errors in Leads, click Information.

Note:

  • For a response that contains an error, the reason for the error is listed in the response. Once you fix it, you can click the Retry button to perform the sync again.
  • The current Lead/Activity Sync Behaviour will reflect in the Logs screen. This will help identify the sync that’s used (Capture or Update) for the selected Request/Sync Job Id.

Razorpay view logs

 

8. Other Actions

You can edit or delete the Razorpay connector instance that you created. To do this –

  1. Navigate to Apps>App Marketplace.
  2. Search for Razorpay (Payment Notifications).
  3. Alongside the Razorpay connector, hover your cursor over .
  4. From the list of options, you can perform the following actions –
    • Edit Configuration
    • Disable Configuration
    • Remove Configuration

Razorpay other actions

 

9. View Reports

You can view the total number of leads that have been pushed by Razorpay, by referring to the Lead Source report. To know more, please refer to How to track the source of your Leads using Lead Source Report?

Integrate LeadSquared with Razorpay

 

Any Questions?

Did you find this article helpful? Please let us know any feedback you may have in the comments section below. We’d love to hear from you and help you out!

Integrate Mavis DB With Smart Views

1. Feature Overview

Admins can create Mavis Smart View tabs to display data stored in Mavis DB.
They can also configure permissions, to enable users to add, update and delete data from the Mavis Smart Views tabs.

For example, you can empower users to manage data on your inventories, properties, courses, etc., or, you can display any data that helps your users in their everyday operations.

LeadSquared Mavis Database

If you’re new to the Smart Views feature, see LeadSquared Smart Views, and Smart Views for Admins.

 

2. Example Use Cases

  • Grants users role-based access to add, update or delete data from Mavis DB tables.
  • Give inventory teams CRUD access to manage inventory tables in Mavis DB.
  • Sales managers and sales users can view/update inventory while making sales – e.g., available/blocked/booked properties within a date range, availability of doctors/rooms, inventory of courses, books, etc.

 

3. Prerequisites

  • You must be an administrator user.
  • You must have Mavis DB enabled on your account. For more details, contact your Account Manager or support@leadsquared.com.

4. Create a Mavis Smart View Tab

  1. Navigate to My Profile>Settings>Leads>Views>Smart Views.
  2. Click create icon.

LeadSquared Smart Views

  1. Enter a name for the Smart View, then click Create Tabs.
  2. Choose Type as Mavis and enter a Name and Description.
  3. Click the Select Condition link.
    1. Select the database.
    2. Select the table name within the database.
    3. Add filter conditions to filter the data from the table. For example, you can filter the ‘State’ field to display results within a particular state:
      • Column Name – StateName| Operator – Equals | Value – Karnataka
      • For more information on filter conditions, see filter conditions.
    4. Click Add to add more filter conditions. You can add up to 20 filter conditions by default. To increase this limit, reach out to your account manager or support@leadsquared.com.
      • For multiple filter conditions, select whether you want All Criteria (and) or Any Criteria (or) to apply.
    5. Click Save.
  4. Verify the filter conditions, then click Save.

Mavis Smart Views

To create more tabs:

  1. Click the icon.
  2. Click Add New Tab.

Note:

  • You can create tabs of different types (Lead, Activity, Mavis, etc.) in the same Smart View.
  • You can re-order columns on the table by dragging and dropping them.

Mavis Smart Views

5. Configure Tab Permissions

Admins can configure the following permissions on the Mavis Smart View tab –

  • Read Data (enabled by default)
  • Add Row
  • Update Row(s)
    • Single Row Update
    • Bulk Update
  • Delete Rows
  • Export Data
  • Import via CSV
    • Create New Record(s)
    • Update record(s)
    • Upsert record(s)

To configure permissions –

  1. Click the Configure link.
  2. On the Configure Actions Menu pop-up, enable the slider alongside the permissions you want to grant.
  3. Click Save.

LeadSquared Mavis Database

 

6. Select Columns

Select the columns you want users to see when accessing the Smart View.

To restrict users from viewing certain columns, enable the Restrict Columns option. When enabled, only the selected columns will be available to the user when they’re personalising the smart view tab through column customization.

Note:

  • Restricting columns in the Smart View is prohibited when any of the Add, Update, Delete, or Import actions are enabled.
  • The column restriction is only applied only at the UI level, not the API level.

LeadSquared Mavis Database

 

7. Assign Smart Views to Teams

Now that the Mavis Smart View tabs are created, assign them to your teams – Assign a Smart Views tab to a team.

 

8. Using Mavis Smart Views Tabs

Users logging in (based on the team) will now be able to work on the Mavis Smart Views tabs, based on the team assignment configured in the previous step.

8.1 Column Customization

To configure the columns you want to see on the grid:

  1. Under Actions, click Select Columns.
  2. Select the columns you want to view.
  3. Click Show Selected.
Note: You can re-order columns on the table by dragging and dropping them.

LeadSquared - Mavis smart views

8.2 Manage Filters

Users can add further filters to the existing filter conditions set by the admin:

  1. Click the LeadSquared Mavis Smart Views Integration - LeadSquared icon.
  2. Add the new filter conditions.
  3. Click Save.

LeadSquared Mavis Smart Views Integration - LeadSquared

Adding User Filters
When searching for user data within a Mavis-type Smart View tab, you can search by User Id, Email Address, First Name, and Last Name fields.*

*Note: First Name and Last Name will only appear as options to search by if you include them while configuring the user type column.

LeadSquared Mavis Smart Views

8.3 Add Row

  1. On the Smart Views page, above the table, click Add Row.
  2. Enter the row details, then click Add.

Note:

  • The maximum table size allowed is 40GB.
  • When you add a row, the data under system columns will be auto-populated.

LeadSquared - Add row in Smart Views

8.4 Update Single Row

To update a single row in the table –

  1. Select the row you want to update.
  2. Hover your cursor over the Actions menu.
  3. Click Update Row.
  4. Enter the row details, then click Update.
Note: Users cannot update the data under system fields since they are auto-populated.

LeadSquared Mavis Smart Views Integration - LeadSquared

8.5 Update Multiple Rows

To update multiple rows in the table –

  1. Select the rows you want to update.
    • To update all the rows present on the current view, on the column header, click Checkbox.
  2. Hover your cursor over the Actions menu, and click Bulk Update.
  3. On the Bulk Update pop-up, on the Select Column & Enter Value tab, from the Column to be updated dropdown, select the column you want to update.
    • If you’ve selected all the rows on the current page to be updated, alongside Bulk update with new value for the…, you’ll have the option to update rows only on the current page, or update all the rows across the entire table.
    • The Bulk update with new value for the selected … row(s) will show up if you’ve manually selected only a few rows to be updated on the current page.
  4. In the New Value box, enter the new value of the selected column.
  5. Once you’re done, click Next.
  6. On the Confirmation tab, verify if all the details are correct, and click Update. You’ll get a confirmation message stating that the update is successful.

Note:

  • Only non-unique columns can be bulk updated. To update unique columns, use the Import Rows feature.
  • Bulk update requests for more than 200 rows may take a couple of minutes to execute.

Mavis Smart Views

If you’ve applied Filters, you’ll only be able to update rows selected based on the filters applied.

Mavis Smart Views

8.6 Delete Rows

  1. Select the rows you want to delete.
  2. Above the table, click Delete.
    • To cancel deleting the rows, click Cancel.

LeadSquared - Delete in Smart Views

8.7 Export Data

  1. Select the rows you wish to export.
    • To export specific rows, alongside the row, click LeadSquared API.
    • To export all rows in that page, alongside the table header, click LeadSquared API.
  2. Hover your cursor over the Actions menu.
  3. On the Export Data pop-up –
    • If you’ve selected specific rows in the table grid, a message with the number of rows being exported will be displayed. For example, if you’ve selected 4 rows, “Number of row(s) to export: 4” will be displayed.
    • If you’ve selected all rows of the page in the table grid, you will get an option to export the selected rows or all rows across all pages.
  4. Once you’ve selected the rows to be exported, you can choose to Export All Columns or Export Selected columns.
    • If you select Export Selected columns, you will be able to choose specific columns you wish to export. Alongside the columns you want to export, click LeadSquared API.
    • If you select Export All Columns, the data in all the Smart Views columns will be exported.
    • If you want to export the Row ID, alongside Include Row ID in Export, click LeadSquared API.
  5. Click Export.

Note:

  • If you do not select specific rows while exporting data, all rows across all pages will be exported.
  • You will only be able to export up to 5GB of data.
  • When exporting data, the Row ID (mv_RowId) is automatically selected and exported.

LeadSquared - Export data in Smart Views

Note: Once the export request is successfully processed, you’ll receive an email with a link to the exported data file. This link is valid only for 6-hours.

Mavis Smart Views

8.8 Import Rows

To import data into your Mavis tab in Smart Views –

  1. First, you’ll have to upload the CSV source file.
  2. Map the columns in the CSV file to the corresponding column within the table.
  3. Then, validate the CSV file. The validations that might show up are Validation Success and Validation Failed.
  4. Once the status is Validation Success or Validation Failed (Partially), click the Import button.

Note:

  • In a single Import action, you can import up to 1-lakh (100,000) rows.
  • The only file format supported while importing is a “.csv” file in the UTF-8 format.
  • Users cannot import data under system fields.

8.8.1 Create New Record(s)

To import and create new records in your Mavis table –

Note:

  • The Create New Records option will be visible only after you enable the Import via CSV – Create New Record(s) setting.
  • You cannot perform the Create New Record(s) action for columns containing the User data type.
  • The maximum table size allowed is 40GB.

Source

  1. Navigate to the Smart Views screen, and on the right of your screen, hover your cursor over the Actions menu, and click Import Rows.
  2. On the Import via CSV screen, Select Import Behaviour –
    • Create new record(s) only – Data present in the CSV file will get created as new records in the table. Existing rows in the Mavis table will not get updated.
  3. Then, click Download Sample. The sample file is generated dynamically and it contains the schema names of all the columns created in the Table Schema.
  4. On the sample CSV file, enter relevant data in the correct data type under each column, and save the file.
    • If you are not using the sample CSV file, and are instead creating new a CSV file/uploading an existing CSV file to update the table, specify the header names (column names) in the first row, and add data across the subsequent rows.
  5. Click Upload, and add the relevant CSV file.
    • Alternatively, you can drag-and-drop the CSV file.
  6. Once you’re done, click Next.

Note:

  • The only file format supported is a “.csv” file.
  • Column with the name ‘__LSQValidationMessage’ or ‘__LSQValidationStatus’ is not allowed in the CSV file.
  • The maximum file size allowed is 10MB.

Smart Views Mavis

Column Mapping

Once you’ve imported the CSV file, you will have to map it against the corresponding column within the table.

  • If the column names in the CSV file are the same as the column names in the table column, then the columns are automatically mapped.
  • Else, from the CSV Column Name dropdowns, you must map the columns to the correct Column Name in Mavis.
  • For Mandatory Fields, map the Column Name in Mavis on the left to the corresponding CSV Column Name on the right.
    • All columns that are marked Unique or Non-Nullable are considered mandatory columns.
    • Once you’re done, click Save.
    • If there are no mandatory columns in the table, the Mandatory Fields option will be disabled, and you’ll not be able to expand or view it.
  • Once you’ve mapped and saved the mandatory columns, for Non-Mandatory Fields, map the remaining non-mandatory CSV Column Name on the left to the corresponding Column Name in Mavis on the right. Note that the order of column mapping is reversed in this step (the CSV Column Name is on the left).
    • All fields marked Is Nullable are considered as non-mandatory columns.
    • The mandatory Mavis columns mapped in the previous step will not show up in the list of options in this step.
    • This step is optional. If you choose to skip it, click Save and continue with the other steps.
    • If there are no non-mandatory columns in the table, the Non-Mandatory Fields option will be disabled, and you’ll not be able to expand or view it.
    • If all the columns under CSV Column Name are mapped, the Non-Mandatory Fields option will be disabled, and you’ll not be able to expand or view it.
  • If DateTime columns are present in the Table Schema –
    • From the Date/Time format in CSV section, select the same Date/Time/DateTime formats given in CSV File.
    • If table schema contains either of Date/DateTime/Time columns, or its combinations, but not all three columns, then in Date/Time format in CSV section, you can choose only those available column formats. Other formats will be disabled.
    • Below are the default formats –
      • Date – yyyy-MM-dd
      • DateTime – yyyy-MM-dd HH:mm:ss
      • Time – HH:mm:ss
  • If there are no Date/Time/DateTime fields in the table schema, then this section will remain greyed out and inaccessible.
  • Once you’re done, click Next.

Note:

  • CSV column names are case-sensitive.
  • Different DateTime fields in the CSV file should follow one uniform format. You cannot upload different format DateTime fields in the same CSV file.
    • For example, in your CSV file, you cannot have one column in the dd-MM-yyyy HH:mm:ss format, and another column in the MM/dd/yyyy HH:mm:ss format.
  • Date, Time and DateTime fields will be stored in the default formats in the Mavis DB.

Smart Views Mavis

Validation

The data in the CSV file will be validated on this screen.

If Validation Success –

If all the row(s) have been successfully validated, you’ll get the Validation Success message. You can choose to continue the CSV file import process by clicking Next.

Smart Views Mavis

If Validation Failed –

If one or all the rows have not been successfully validated, you’ll get the Validation Failed message. There are two types of Validation Failed messages you might receive –

  • Partially Failed – This means the validation for only a few rows in the CSV file failed, while the remaining rows’ validation was successful.

Smart Views Mavis

  • Completely Failed – This means the validation for all the rows in the CSV file failed.

Smart Views Mavis

To rectify a failed validation –

  1. You’ll get the following details about the rows that were validated –
    • Total Rows
    • Success Rows
    • Failed Rows
  2. Here, you can view the rows that failed during validation.
    • If you want to ignore the Failed Rows error and proceed with only uploading the Success Rows in the file import process, you can do so by clicking Next.
  3. To download the failure report, click Failure Report.
  4. In the Failure Report file, you’ll see two new system-generated columns have been added – “__LSQValidationMessage” and “__LSQValidationStatus”
  5. The “__LSQValidationMessage” column will state the reason as to why the validation was unsuccessful for that particular row.
  6. The “__LSQValidationStatus” will display the validation status (“Success” or “Failed”) for that particular row.
  7. Once you’ve rectified the error in the original CSV file, save the file, and re-upload it from the Source screen.
  8. If all the rows have been successfully validated, you’ll get the Validation Success message. You can choose to continue the CSV file import process by clicking Next.

Smart Views Mavis

Summary

All CSV files that are imported are usually queued within our servers. It may take a few minutes for these files to be successfully imported.

In the Summary screen, you’ll get a message stating, “You have successfully imported the file.” This means your file is currently queued for import, and it will be completed within a few minutes. Once the import is successful, the user who performed the import action will receive an email confirmation about the same.

Note: If you cancel or close the Import request midway, the request will be cancelled.

Smart Views Mavis

8.8.2 Update Rows through CSV

You can bulk update multiple rows across multiple columns by uploading a CSV file.

Note:

  • The Update Record(s) option will be visible only after you enable the Import via CSV – Update Record(s) setting.
  • The CSV file must have at least two columns – one unique column must be set as the Search Key and the other containing the data to be updated.
    • Only 1 unique column can be defined as the Search Key. Column mapping is mandatory for this column.
  • To use the system field mv_RowId as the Search Key, it must be present in the uploaded CSV file (mv_RowId can be obtained when exporting data).
  • The mv_RowId column name is case-sensitive. Ensure the syntax and case is correct.
  • Column mapping is not required for the mv_RowId.
  • You cannot perform the Update Rows action for columns containing the User data type.
  • Column mapping is required only for the columns where you want to import data.

To bulk update rows through CSV –

  1. Navigate to the Smart Views screen, and on the right of your screen, hover your cursor over the Actions menu, and click Import Rows.
  2. On the Import via CSV screen, Select Import Behaviour –
    • Update existing row(s) only – Based on the Search Key defined, existing rows found in the CSV file will get updated in the corresponding table rows. For rows that don’t exist in both the CSV file as well as the table, no new records will be created in the table.
  3. Click Next to proceed to the column mapping tab.
  4. Map the fields in your CSV file to the fields in your Mavis table, then click Save.
  5. Select the unique column to define as the search key and click Save.
  6. Click Next to proceed to the validation tab. If there’s at least one successfully validated row, you can click next to complete the import. Otherwise, you can fix the errors and re-upload the file. For more details, see Import Rows -Validation.
  7. In the Summary screen, you’ll get a message stating, “You have successfully imported the file.” This means your file is currently queued for import, and it will be completed within a few minutes. Once the import is successful, the user who performed the import action will receive an email confirmation about the same.

LeadSquared Mavis Database

8.8.3 Upsert Rows through CSV

This option allows you to update existing rows as well as add new rows to the table through the same CSV file upload action.

Note:

  • The Upsert Record(s) option will be visible only after you enable the Import via CSV – Upsert Record(s) setting.
  • The CSV file must have at least two columns – one unique column must be set as the Search Key and the other containing the data to be updated.
    • Only 1 unique column can be defined as the Search Key. Column mapping is mandatory for this column.
  • The maximum table size allowed is 40GB.
  • To use the system field mv_RowId as the Search Key, it must be present in the uploaded CSV file (mv_RowId can be obtained when exporting data).
  • If your table doesn’t contain a unique column, then the mv_RowId is used to identify if an existing row needs to be updated, or if a new record has to be created in the table.
  • The mv_RowId column name is case-sensitive. Ensure the syntax and case is correct.
  • Column mapping is not required for the mv_RowId.
  • You cannot perform the Upsert Rows action for columns containing the User data type.
  • Column mapping is required only for the columns where you want to import data.

To upsert rows through the CSV –

  1. Navigate to the Smart Views screen, and on the right of your screen, hover your cursor over the Actions menu, and click Import Rows.
  2. On the Import via CSV screen, Select Import Behaviour –
    • Upsert (Create new record(s) & update existing) – Based on the Search Key defined, existing rows found in the CSV file will get updated in the corresponding table rows. If the Search Key is empty or if it’s not found, new records will get created in the table.
  3. Click Next to proceed to the column mapping tab.
  4. Map the fields in your CSV file to the fields in your Mavis table, then click Save.
  5. Select the unique column to define as the search key and click Save.
  6. Click Next to proceed to the validation tab. If there’s at least one successfully validated row, you can click next to complete the import. Otherwise, you can fix the errors and re-upload the file. For more details, see Import Rows -Validation.
  7. In the Summary screen, you’ll get a message stating, “You have successfully imported the file.” This means your file is currently queued for import, and it will be completed within a few minutes. Once the import is successful, the user who performed the import action will receive an email confirmation about the same.

LeadSquared Mavis Database

8.9 Request History

The Request History tab keeps track of the following Ongoing Requests and Completed Requests

  • Import Data
  • Export Table
  • Add Rows
  • Update Rows
  • Delete Rows

For Completed Requests, you can filter the requests by the following Statuses

  • Table Operation Success
  • Table Operation Failed
  • Cancelled

For Ongoing and Completed Requests, you can also apply the following filters –

  • Request made by Sources
    • Smartview – Only the requests generated through the Smartview screen.
    • UI – Only the requests generated through the Mavis screen.
  • Requested By
    • All – Requests made by all users in the account.
    • Me – Request made by the logged-in user.

For requests made by you (the logged-in user), click to Three dots perform the following actions –

  • Request Details – Click to view the Request Id.
  • Cancel – Click to cancel an ongoing request.
  • Download – Click to download the Export request file.

Note: Non-admin users will be able to download the imported file of the selected Mavis tab only if the Import via CSV permissions are enabled. For e.g., if a Mavis tab only has the Import via CSV – Upsert Records permission enabled, and if a user tries to download the imported file for a Create/Update Records action, the user will be restricted from downloading this file. The same will apply when a non-admin user tries to cancel an import request.

LeadSquared Mavis Database

 

Any Questions?

Did you find this article helpful? Please let us know any feedback you may have in the comments section below. We’d love to hear from you and help you out!