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
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.
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/
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
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?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156