Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Question on Salesperson tables

Posted on by 364

I am trying to determine which tables, in case I wrote a script for the customer, I would need to update - My customer has a Salesperson retiring and so they want to move all of his customers to another existing salesperson.  I was looking at the RM00102 TABLE as one that would need to be updated but are there any other tables that we would need to update as well?  

Categories:
  • sdcraig Profile Picture
    sdcraig 364 on at
    RE: Question on Salesperson tables

    That was one of the first things I looked at but if it changed the ID then as long as that user was setup as a salesperson already then it would work but I am not sure if they want to change all the history tables though

  • Lisa at AonC.com Profile Picture
    Lisa at AonC.com 3,134 on at
    RE: Question on Salesperson tables

    I haven't used this tool in a long time but I believe it changes all the transaction history ... Works great if you want to be able to compare a customer's salesperson history over time, but can be confusing if that isn't the expected behavior.  I have often updated the customer/customer address tables via SQL to default in the new salesperson going forward when the history needed to not be changed.)  As you remind us often, testing and backups are your best friends when manipulating data.  

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,926 Most Valuable Professional on at
    RE: Question on Salesperson tables

    Excellent Suggestion Lisa..... why re-invent the wheel?

  • Suggested answer
    Lisa at AonC.com Profile Picture
    Lisa at AonC.com 3,134 on at
    RE: Question on Salesperson tables

    The PSTL Salesperson Modifier is a great tool if you want everything assigned to the retiring salesperson now assigned to the new salesperson:
    pastedimage1677082193398v1.png

  • Eddie C Profile Picture
    Eddie C 5 on at
    RE: Question on Salesperson tables

    If you have access to SQL, run this script on your Database. It will show you every table that has the field name you are wanting to update and where it is located.

    SELECT DISTINCT

      TABLE_NAME

    FROM

      INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = 'slprsnid'

  • sdcraig Profile Picture
    sdcraig 364 on at
    RE: Question on Salesperson tables

    Thanks Dave - they probably do not want to change the History tables.   They want some kind of a script to update the retiring Salesperson to the new one instead of assigning each customer to the new salesperson in GP.

  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,926 Most Valuable Professional on at
    RE: Question on Salesperson tables

    Using GP Power Tools Resource Information window, I can tell you that based on a core Dynamics GP install (not with the same addon products you might have), the 'Saleperson ID' field appears in 32 tables.

    Salesperson.png

    There is also the 'Start Salesperson ID' and 'End Salesperson ID' field.

    Using the Resource Finder window we could actually identify exactly which tables your retiring Salesperson exists in and then a simple SQL Update Statement can change the ID to their replacement.

    To do this all manually, without the field filtering and many other features offered by GP Power Tools, you could look at the following article:

    winthropdc.wordpress.com/.../

    Regards

    David

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans