web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Can't add Microsoft En...
Power Automate
Unanswered

Can't add Microsoft Entra ID to the Dataverse table

(0) ShareShare
ReportReport
Posted on by 28

Hi everyone,

I have a Dataverse table that contains Microsoft Entra ID column.

I am now trying to add a new row to the table using Power Automate but Microsoft Entra ID filed is not accepting the user ID and throws a error:

 

{
  "error": {
    "code""0x80060888",
    "message""URL was not parsed due to an ODataUnrecognizedPathException. Resource not found for the segment provided in the URL."
  }
}
 
MEI error (17).png
 
 
Categories:
I have the same question (1)
  • harshdeol Profile Picture
    441 Moderator on at

    Hi @VMK , Instead of passing the Entra ID directly, please use the following syntax:

    /aadusers(outputs('Get_user_profile_(V2)')?['body/id'])

    harshdeol_0-1718389367960.png

    Since the Sales Person field is a lookup field to the "Microsoft Entra ID" table, you cannot update it directly. You need to pass the Unique Identifier of that record(which is the same as the Entra ID in this case).

     

    Please try and let me know if you face any issues further.

    -----------------------------------------------------------------------------------------------------------------
    If your question got an answer, please click "Accept as Solution "✅, If you liked my answer, please hit the "thumbs-up" 👍button.

    Thank you,
    Harsh Deol

  • VMK Profile Picture
    28 on at

    Hi @harshdeol ,

    Many thanks for your reply. I tried 

    /aadusers(outputs('Get_user_profile_(V2)')?['body/id'])

    and flow checker returned a error:

    The power flow's logic app flow template was invalid. The template language expression '/aadusers(outputs('Get_user_profile_(V2)')?['body/id']) ' is not valid: the string character '/' at position '0' is not expected.

     

    If I use it with no / the flow returns a error:
    InvalidTemplate. Unable to process template language expressions in action 'Add_a_new_row_to_FMS_Installations' inputs at line '0' and column '0': 'The template function 'aadusers' is not defined or not valid.'.

     

    Can you please help?

  • harshdeol Profile Picture
    441 Moderator on at

    Hi @VMK , Can you please confirm the Sales Person is a Lookup column from Entra Id table?

    If yes, please type the /aadusers() manually and then with the parenthesis (), add the Dynamic value of the "Id" from previous Action. See previous Image. It should look similar to this if you copy all values in Notepad.

    /aadusers(@{outputs('Get_user_profile_(V2)')?['body/id']})

    -----------------------------------------------------------------------------------------------------------------
    If your question got an answer, please click "Accept as Solution "✅, If you liked my answer, please hit the "thumbs-up" 👍button.

    Thank you,
    Harsh Deol

  • VMK Profile Picture
    28 on at

    @harshdeol ,

     

    sorry for the late reply. I have tried what you suggested. But I still have a error. It looks like the plugin was not installed correctly.

     

    "@Microsoft.PowerApps.CDS.InnerError.Message": "System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: AccessToken not found. Please make sure plugin is registered as synchronous and not called with app credentials. (Fault Detail is equal to Exception details: \r\nErrorCode: 0x80040216\r\nMessage: AccessToken not found. Please make sure plugin is registered as synchronous and not called with app credentials.\r\nTimeStamp: 2024-06-26T15:46:17.0000000Z\r\nOriginalException: Microsoft.Crm.CrmException: AccessToken not found. Please make sure plugin is registered as synchronous and not called with app credentials.\r\n at Microsoft.Crm.ObjectModel.OboTokenProvider.<>c__DisplayClass13_0.<GetOBOToken>b__0()\r\n at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties)\r\n at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func)\r\n at Microsoft.Crm.Sandbox.Service.PluginSecureStoreServiceProvider.<>c__DisplayClass39_0.<OnBehalfOfTokenServiceProviderAcquireToken>b__0()\r\n at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult...)."
  • VMK Profile Picture
    28 on at
    Hi All,
     
    I still need help on this topic.
     
    I still can't create a reference to the MS Entra ID table.
    I have the following error:
     
    {
      "error": {
        "code": "0x80040265",
        "message": "System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: AccessToken not found. Please make sure plugin is registered as synchronous and not called with app credentials. (Fault Detail is equal to Exception details: \r\nErrorCode: 0x80040216\r\nMessage: AccessToken not found. Please make sure plugin is registered as synchronous and not called with app credentials.\r\nTimeStamp: 2024-09-12T14:20:33.0000000Z\r\nOriginalException: Microsoft.Crm.CrmException: AccessToken not found. Please make sure plugin is registered as synchronous and not called with app credentials.\r\n   at Microsoft.Crm.ObjectModel.OboTokenProvider.<>c__DisplayClass13_0.<GetOBOToken>b__0()\r\n   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties)\r\n   at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func)\r\n   at Microsoft.Crm.Sandbox.Service.PluginSecureStoreServiceProvider.<>c__DisplayClass40_0.<OnBehalfOfTokenServiceProviderAcquireToken>b__0()\r\n   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult...).",
        "@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionSourceKey": "Plugin/Microsoft.Crm.ObjectModel.SyncWorkflowExecutionPlugin",
        "@Microsoft.PowerApps.CDS.ErrorDetails.ApiStepKey": "c2eb81fd-5340-ef11-a316-7c1e522d0629",
        "@Microsoft.PowerApps.CDS.ErrorDetails.ApiDepthKey": "1",
        "@Microsoft.PowerApps.CDS.ErrorDetails.ApiActivityIdKey": "2780868d-a7cc-4cef-a9e5-ecc36c29e0a5",
        "@Microsoft.PowerApps.CDS.ErrorDetails.ApiPluginSolutionNameKey": "System",
        "@Microsoft.PowerApps.CDS.ErrorDetails.ApiStepSolutionNameKey": "System",
        "@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionCategory": "ClientError",
        "@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionMessageName": "IsvAborted",
        "@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionHttpStatusCode": "400",
        "@Microsoft.PowerApps.CDS.ErrorDetails.OperationStatus": "0",
        "@Microsoft.PowerApps.CDS.ErrorDetails.SubErrorCode": "-2146233088",
        "@Microsoft.PowerApps.CDS.ErrorDetails.Plugin.PluginTrace": "[Microsoft.Crm.ObjectModel: Microsoft.Crm.ObjectModel.SyncWorkflowExecutionPlugin]\r\n[c2eb81fd-5340-ef11-a316-7c1e522d0629: ]\r\nStarting sync workflow 'Contract Filed Visibility for Directly billed contracts', Id: e0b3126f-d53e-ef11-a316-6045bd128a84\r\nEntering ConditionStep1_step: \r\nEntering SetAttributeValueStep6_step: \r\nEntering ConditionBranchStep3_step: \r\nSync workflow 'Contract Filed Visibility for Directly billed contracts' completed successfully\r\nStarting sync workflow 'DPA Signed Status', Id: c290a059-6ffd-ee11-9f8a-6045bdd292a5\r\nEntering ConditionStep1_step: \r\nEntering SetAttributeValueStep4_step: \r\nEntering ConditionBranchStep3_step: \r\nSync workflow 'DPA Signed Status' completed successfully\r\nStarting sync workflow 'SAP Contract Created Value and Visibility', Id: 1f3a5091-6417-ef11-840b-6045bdd2ca79\r\nEntering ConditionStep1_step: \r\nEntering SetAttributeValueStep2_step: \r\nEntering ConditionBranchStep3_step: \r\nSync workflow 'SAP Contract Created Value and Visibility' completed successfully\r\nStarting sync workflow 'Costs Data Check', Id: 22fdc57b-d1fc-ee11-9f8a-6045bdd2ca79\r\nEntering ConditionStep1_step: \r\nEntering SetAttributeValueStep3_step: \r\nEntering ConditionBranchStep2_step: \r\nSync workflow 'Costs Data Check' completed successfully\r\nStarting sync workflow 'Key User Info Check', Id: 85638dbe-d3fc-ee11-9f8a-6045bdd2ca79\r\nEntering ConditionStep1_step: \r\nEntering SetAttributeValueStep3_step: \r\nEntering ConditionBranchStep2_step: \r\nSync workflow 'Key User Info Check' completed successfully\r\nStarting sync workflow 'Contract Type Info Check', Id: 025bd341-d4fc-ee11-9f8a-6045bdd2ca79\r\nEntering ConditionStep1_step: \r\nEntering SetAttributeValueStep3_step: \r\nEntering ConditionBranchStep2_step: \r\nSync workflow 'Contract Type Info Check' completed successfully\r\nStarting sync workflow 'General Info Check', Id: b4eb81fd-5340-ef11-a316-7c1e522d0629\r\nEntering ConditionStep1_step: \r\nSync workflow 'General Info Check' terminated with error 'System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: AccessToken not found. Please make sure plugin is registered as synchronous and not called with app credentials. (Fault Detail is equal to Exception details: \r\nErrorCode: 0x80040216\r\nMessage: AccessToken not found. Please make sure plugin is registered as synchronous and not called with app credentials.\r\nTimeStamp: 2024-09-12T14:20:33.0000000Z\r\nOriginalException: Microsoft.Crm.CrmException: AccessToken not found. Please make sure plugin is registered as synchronous and not called with app credentials.\r\n   at Microsoft.Crm.ObjectModel.OboTokenProvider.<>c__DisplayClass13_0.<GetOBOToken>b__0()\r\n   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties)\r\n   at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func)\r\n   at Microsoft.Crm.Sandbox.Service.PluginSecureStoreServiceProvider.<>c__DisplayClass40_0.<OnBehalfOfTokenServiceProviderAcquireToken>b__0()\r\n   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult...).'\r\n\r\n\t\r\n\t[Microsoft.Dynamics.CDS.AADPlugins: Microsoft.Dynamics.CDS.AADPlugins.PersonTypeRetrievePlugin]\r\n\t[878914f8-e4e3-ee11-904d-6045bd0e7a28: External plug-in implementation]\r\n\t\r\n\t",
        "@Microsoft.PowerApps.CDS.TraceText": "\r\n[Microsoft.Crm.ObjectModel: Microsoft.Crm.ObjectModel.SyncWorkflowExecutionPlugin]\r\n[c2eb81fd-5340-ef11-a316-7c1e522d0629: ]\r\nStarting sync workflow 'Contract Filed Visibility for Directly billed contracts', Id: e0b3126f-d53e-ef11-a316-6045bd128a84\r\nEntering ConditionStep1_step: \r\nEntering SetAttributeValueStep6_step: \r\nEntering ConditionBranchStep3_step: \r\nSync workflow 'Contract Filed Visibility for Directly billed contracts' completed successfully\r\nStarting sync workflow 'DPA Signed Status', Id: c290a059-6ffd-ee11-9f8a-6045bdd292a5\r\nEntering ConditionStep1_step: \r\nEntering SetAttributeValueStep4_step: \r\nEntering ConditionBranchStep3_step: \r\nSync workflow 'DPA Signed Status' completed successfully\r\nStarting sync workflow 'SAP Contract Created Value and Visibility', Id: 1f3a5091-6417-ef11-840b-6045bdd2ca79\r\nEntering ConditionStep1_step: \r\nEntering SetAttributeValueStep2_step: \r\nEntering ConditionBranchStep3_step: \r\nSync workflow 'SAP Contract Created Value and Visibility' completed successfully\r\nStarting sync workflow 'Costs Data Check', Id: 22fdc57b-d1fc-ee11-9f8a-6045bdd2ca79\r\nEntering ConditionStep1_step: \r\nEntering SetAttributeValueStep3_step: \r\nEntering ConditionBranchStep2_step: \r\nSync workflow 'Costs Data Check' completed successfully\r\nStarting sync workflow 'Key User Info Check', Id: 85638dbe-d3fc-ee11-9f8a-6045bdd2ca79\r\nEntering ConditionStep1_step: \r\nEntering SetAttributeValueStep3_step: \r\nEntering ConditionBranchStep2_step: \r\nSync workflow 'Key User Info Check' completed successfully\r\nStarting sync workflow 'Contract Type Info Check', Id: 025bd341-d4fc-ee11-9f8a-6045bdd2ca79\r\nEntering ConditionStep1_step: \r\nEntering SetAttributeValueStep3_step: \r\nEntering ConditionBranchStep2_step: \r\nSync workflow 'Contract Type Info Check' completed successfully\r\nStarting sync workflow 'General Info Check', Id: b4eb81fd-5340-ef11-a316-7c1e522d0629\r\nEntering ConditionStep1_step: \r\nSync workflow 'General Info Check' terminated with error 'System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: AccessToken not found. Please make sure plugin is registered as synchronous and not called with app credentials. (Fault Detail is equal to Exception details: \r\nErrorCode: 0x80040216\r\nMessage: AccessToken not found. Please make sure plugin is registered as synchronous and not called with app credentials.\r\nTimeStamp: 2024-09-12T14:20:33.0000000Z\r\nOriginalException: Microsoft.Crm.CrmException: AccessToken not found. Please make sure plugin is registered as synchronous and not called with app credentials.\r\n   at Microsoft.Crm.ObjectModel.OboTokenProvider.<>c__DisplayClass13_0.<GetOBOToken>b__0()\r\n   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties)\r\n   at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func)\r\n   at Microsoft.Crm.Sandbox.Service.PluginSecureStoreServiceProvider.<>c__DisplayClass40_0.<OnBehalfOfTokenServiceProviderAcquireToken>b__0()\r\n   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult...).'\r\n\r\n\t\r\n\t[Microsoft.Dynamics.CDS.AADPlugins: Microsoft.Dynamics.CDS.AADPlugins.PersonTypeRetrievePlugin]\r\n\t[878914f8-e4e3-ee11-904d-6045bd0e7a28: External plug-in implementation]\r\n\t\r\n\t\r\n",
        "@Microsoft.PowerApps.CDS.InnerError.Message": "System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: AccessToken not found. Please make sure plugin is registered as synchronous and not called with app credentials. (Fault Detail is equal to Exception details: \r\nErrorCode: 0x80040216\r\nMessage: AccessToken not found. Please make sure plugin is registered as synchronous and not called with app credentials.\r\nTimeStamp: 2024-09-12T14:20:33.0000000Z\r\nOriginalException: Microsoft.Crm.CrmException: AccessToken not found. Please make sure plugin is registered as synchronous and not called with app credentials.\r\n   at Microsoft.Crm.ObjectModel.OboTokenProvider.<>c__DisplayClass13_0.<GetOBOToken>b__0()\r\n   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties)\r\n   at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func)\r\n   at Microsoft.Crm.Sandbox.Service.PluginSecureStoreServiceProvider.<>c__DisplayClass40_0.<OnBehalfOfTokenServiceProviderAcquireToken>b__0()\r\n   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult...)."
      }
    }
     
    I could not find the Microsoft.Crm.ObjectModel.SyncWorkflowExecutionPlugin in the plugin registration tool. There is also no trace of it in the Dynamics 365 admin centre.
     
    Can anyone help with it please?
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard