Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

How To Make A Field Accept Only Unique Values during Integration (Prevent Duplicates)

Posted on by 15

pastedimage1587832687589v2.png

I have a sale process setup where the order processing team can integrate Sales orders by entering the PO number (PONO) of that order. That PONO gets stored into the "Customer PO Number" field in the Sales Transaction Entry window (Transactions >> Sales >> Sales Transaction Entry). However, if the same order is attempted by another user, it gets integrated with the same PONO but a different document number.

My question is: Is there a way I can prevent duplicate integrations by validating on that PONO field so that is another member tries to integrate something  that's already integrated it will fail ? How can I do a validation on that Customer PO Number field ? Is there any script of some kind I could use ?

Categories:
  • bgajjar Profile Picture
    bgajjar 150 on at
    RE: How To Make A Field Accept Only Unique Values during Integration (Prevent Duplicates)

    Hi,

    May be you should try write trigger on SOP10100 and check PO Number, if already exist then throw error.

    RAISERROR('PO Number ' + inserted.CSTPONBR + ' is already exist'),-1,-1);

    Thanks
    Bharat
  • NHF APPS TEAM Profile Picture
    NHF APPS TEAM 15 on at
    RE: How To Make A Field Accept Only Unique Values during Integration (Prevent Duplicates)

    We integrate orders using the Integration Manager. However, there is no provision to do any specific setup regarding preventing duplicates on that field.

    I have a script setup that asks for the PONO before integration. I am wondering if there is any script we could use to check GP for the PONO as well at that point ?

  • Alaa Ramadan Profile Picture
    Alaa Ramadan 4,084 on at
    RE: How To Make A Field Accept Only Unique Values during Integration (Prevent Duplicates)

    This all depends on how do you integrate your sales orders data into GP.

  • Suggested answer
    Beat Bucher  GP Geek  GPUG All Star Profile Picture
    Beat Bucher GP Gee... 28,021 Super User 2024 Season 1 on at
    RE: How To Make A Field Accept Only Unique Values during Integration (Prevent Duplicates)

    This is indeed something that GPPT (GP PowerTools) could handle with the developer module, as you could check for previous identical Customer PO # before validating the entry..

    The other way as suggested by Almas would be to use a pre-script from your integration tool (like Scribe or SmartConnect to run the validation about pre-existing Customer PO #'s in Work and History tables.. then deny it if found an existing entry.

    No easy way to tackle it, and definitely nothing in GP out-of-the-box

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: How To Make A Field Accept Only Unique Values during Integration (Prevent Duplicates)

    You would need to use your preferred programming tool to perform this PO number check.. VBA or C# or Dexterity. Perhaps GP Power Tools could do this as well.

  • Suggested answer
    Almas Mahfooz Profile Picture
    Almas Mahfooz 11,003 User Group Leader on at
    RE: How To Make A Field Accept Only Unique Values during Integration (Prevent Duplicates)

    There is no out of the box solution for that. You can verify you PONumber value before sending to you integration via SQL if not exist in SOP10100 customer po number field. what's your  integration tool?

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans