Important Notice: On Tuesday March 25, RepSpark will migrate our support service from Freshdesk to HubSpot.
You will continue to submit and access tickets via helpdesk.repspark.com as usual. Additionally, you can reach us through the same email address.
Please be aware that all existing tickets, both resolved and unresolved, are being transferred to HubSpot and will be assigned new ticket numbers.
We are committed to providing you with support, so if you have any questions or concerns, please do not hesitate to contact us. We are here to assist you in any way we can.

×
Open navigation

Sales person hierarchy for My Orders and Reports

My Orders and Reports allow multiple sales people, managers, and admins to view RepSpark orders in My Orders as well as ERP orders in Reports and Invoices.

For My Orders, the information needed to support this hierarchy comes from the ParentCode field in the Options API call. The top of the hierarchy has ParentCode set to NULL as they do not have anyone above them.

Here's a simple example.

  • A (highest level)
    • B (no children, one level deep)
    • C (one child, one level deep)
      • D (no children, two levels deep)
This hierarchy looks like the following Options data. Only the relevant fields are listed.

KeyCode ParentCode
A            NULL
B            A
C            A
D            C

For reports and invoices, the information needed is not represented as a recursive tree hierarchy in data. Instead, each individual report and invoice has a list of users allowed to see that report.

[{
    "OrderNumber": "12345",
    "Users": [{
        "UserCode": "A",
        "UserDescription": "A"
    },
    {
        "UserCode": "B",
        "UserDescription": "B"
    },
    {        "UserCode": "C",        "UserDescription": "C"    },    {        "UserCode": "D",        "UserDescription": "D"    }]
}]

Again, the data for reports and invoices does not capture the exact hierarchy in the same parent/child relationship as Options. Each report and invoice needs to explicitly list the users that are allowed to view the report or invoice.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.
PrevFAQ: Current Insignia Limitations