Problème de récupération d'adresse mail d'un champ personne Dataverse (Lookup vers une autre table)

Étiquetté : ,

  • Problème de récupération d'adresse mail d'un champ personne Dataverse (Lookup vers une autre table)

    Posté par RANDRIATAHINA Charles sur 27 janvier 2023 à 8h21

    Bonjour,
    J’ai un flux Power automate qui devrait être capable de récupérer l’adresse mail d’une personne à partir d’un champ Lookup vers une autre table virtuel Dataverse.

    Le problème c’est que quand je veux récupérer les informations concernant la personne de ma colonne en utilisant la table Users, mais j’ai toujours cette erreur qui s’affiche

    {  "error": {    "code": "0x80040265",    "message": "System.ServiceModel.FaultException1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: AccessToken not found (Fault Detail is equal to Exception details: \r\nErrorCode: 0x80040216\r\nMessage: AccessToken not found\r\nTimeStamp: 2023-01-26T18:04:53.0000000Z\r\nOriginalException: Microsoft.Crm.CrmException: AccessToken not found\r\n   at Microsoft.Crm.ObjectModel.OboTokenProvider.<>c__DisplayClass8_0.<GetOBOToken>b__0()\r\n   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func1 func, IEnumerable1 additionalCustomProperties)\r\n   at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func1 func)\r\n   at Microsoft.Crm.ObjectModel.OboTokenProvider.GetOBOToken(Guid organizationId, IEnumerable1 scopes)\r\n   at Microsoft.Crm.Sandbox.Service.PluginSecureStoreServiceProvider.<>c__DisplayClass37_0.<OnBehalfOfTokenServiceProviderAcquireToken>b__0()\r\n   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func1 func, IEn...).",    "@Microsoft.PowerApps.CDS.ErrorDetails.OperationStatus": "0",    "@Microsoft.PowerApps.CDS.ErrorDetails.SubErrorCode": "-2146233088",    "@Microsoft.PowerApps.CDS.ErrorDetails.Plugin.ExceptionFromPluginExecute": "Microsoft.Dynamics.CDS.AADPlugins.PersonTypeRetrievePlugin",    "@Microsoft.PowerApps.CDS.ErrorDetails.Plugin.ExceptionRetriable": "False",    "@Microsoft.PowerApps.CDS.ErrorDetails.Plugin.ExceptionSource": "PluginExecution",    "@Microsoft.PowerApps.CDS.ErrorDetails.Plugin.OriginalException": "PluginExecution",    "@Microsoft.PowerApps.CDS.ErrorDetails.Plugin.PluginTrace": "",    "@Microsoft.PowerApps.CDS.HelpLink": "http://go.microsoft.com/fwlink/?LinkID=398563&error=Microsoft.Crm.CrmException%3a80040265&client=platform",    "@Microsoft.PowerApps.CDS.TraceText": "\r\n[Microsoft.Dynamics.CDS.AADPlugins: Microsoft.Dynamics.CDS.AADPlugins.PersonTypeRetrievePlugin]\r\n[bd167f6b-e857-ed11-9562-000d3aba37b2: External plug-in implementation]\r\n\r\n",    "@Microsoft.PowerApps.CDS.InnerError.Message": "System.ServiceModel.FaultException1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: AccessToken not found (Fault Detail is equal to Exception details: \r\nErrorCode: 0x80040216\r\nMessage: AccessToken not found\r\nTimeStamp: 2023-01-26T18:04:53.0000000Z\r\nOriginalException: Microsoft.Crm.CrmException: AccessToken not found\r\n   at Microsoft.Crm.ObjectModel.OboTokenProvider.<>c__DisplayClass8_0.<GetOBOToken>b__0()\r\n   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func1 func, IEnumerable1 additionalCustomProperties)\r\n   at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func1 func)\r\n   at Microsoft.Crm.ObjectModel.OboTokenProvider.GetOBOToken(Guid organizationId, IEnumerable1 scopes)\r\n   at Microsoft.Crm.Sandbox.Service.PluginSecureStoreServiceProvider.<>c__DisplayClass37_0.<OnBehalfOfTokenServiceProviderAcquireToken>b__0()\r\n   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func1 func, IEn...)."  }}

    Pourriez-vous me dire ce qu’il faut faire pour résoudre ce genre de problème ?

    Merci d’avance

    PostID=gnApo4UUQLtyiKn

    DavidZed a répondu Il y a 7 mois, 4 semaines 1 Membre · 1 Réponse
  • 1 Réponse
  • DavidZed

    Membre
    27 janvier 2023 à 9h41

    Bonjour,

    Je pense que tu essaies de requeter directement sur la table AAD User, d’autres sont tombés sur la même impasse :

    erse List rows AAD – Error AccessToken not fo… – Power Platform Community (microsoft.com)

    unfortunately, at this time, AAD User is not currently available for Automate. This is planned for a future release.

    A la place, essaie d’inclure la donnée de ta colonne lookup en tant qu’expanded query de la requête sur ta table principale

    CommentID=W14goTkSprCphJL, PostID=gnApo4UUQLtyiKn

Connectez-vous pour répondre.