Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Auto Number Manager on System created records

Posted on by 15

Hi,

I'm encountering an issue where we have Auto Number Manager set-up against the Account entity, however any accounts created pragmatically by the system aren't triggering the Auto Number and therefore return a blank value.

Some background: Accounts are created by the system as we have external systems that have an API feed into Dynamics and then de-duplicate & create the records within Dynamics.

Any ideas as to why this is happening/how to resolve it?

Thanks,

Michael

  • winston he Profile Picture
    winston he 220 on at
    RE: Auto Number Manager on System created records

    Hi Michael,

    Auto Mananger is a community tool which is not a product of Dynamics, which is based on the auto number feature of Dynamics CE.

    https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/create-auto-number-attributes

    pastedimage1582014235700v2.png

    From Dynamics CE perspective,  you can try to create a auto number attribute easily with web API  like this using Tabbed Postman tool, and see if everything is fine.

    -----------

    POST [Organization URI]/api/data/v9.0/EntityDefinitions(LogicalName='new_widget')/Attributes HTTP/1.1
    Accept: application/json
    Content-Type: application/json; charset=utf-8
    OData-MaxVersion: 4.0
    OData-Version: 4.0

    {
    "AttributeType": "String",
    "AttributeTypeName": {
    "Value": "StringType"
    },
    "Description": {
    "@odata.type": "Microsoft.Dynamics.CRM.Label",
    "LocalizedLabels": [
    {
    "@odata.type": "Microsoft.Dynamics.CRM.LocalizedLabel",
    "Label": "Serial Number of the widget.",
    "LanguageCode": 1033
    }
    ]
    },
    "DisplayName": {
    "@odata.type": "Microsoft.Dynamics.CRM.Label",
    "LocalizedLabels": [
    {
    "@odata.type": "Microsoft.Dynamics.CRM.LocalizedLabel",
    "Label": "Serial Number",
    "LanguageCode": 1033
    }
    ]
    },
    "RequiredLevel": {
    "Value": "None",
    "CanBeChanged": true,
    "ManagedPropertyLogicalName": "canmodifyrequirementlevelsettings"
    },
    "SchemaName": "new_SerialNumber",
    "AutoNumberFormat": "WID-{SEQNUM:5}-{RANDSTRING:6}-{DATETIMEUTC:yyyyMMddhhmmss}",
    "@odata.type": "Microsoft.Dynamics.CRM.StringAttributeMetadata",
    "FormatName": {
    "Value": "Text"
    },
    "MaxLength": 100
    }

    Or you can post your query to Auto Number Manager community : https://www.xrmtoolbox.com/plugins/Rappen.XrmToolBox.AutoNumManager/

  • MichaelHoward Profile Picture
    MichaelHoward 15 on at
    RE: Auto Number Manager on System created records

    Hi Winston,

    It isn't a 3rd Party solution no, we've using the AutoNumberManager within XRMToolBox associated directly with our main solution.

    Thanks,

    Michael

  • winston he Profile Picture
    winston he 220 on at
    RE: Auto Number Manager on System created records

    Hi Michael, 

    Does the Auto Number manager refer to a 3rd party solution? if that is the case, you can check if there is any async plugin | workflow which generates the number works fine or not.

    BTW, actually auto number is a built-in feature since CRM9.*, would you like to try it?

    https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/create-auto-number-attributes

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