简体   繁体   English

客户端为 Dynamics 365 添加了新沙盒,尝试插入数据时出现 401 错误

[英]Client added new sandbox for Dynamics 365, and when trying to insert data I'm getting a 401 error

We had our client create a new sandbox for us to test imports without workflows (imports work on the original sandbox.) I'm authenticated into D365 using an Active Directory app with a certificate sent from the C# code and my thought process was to just replace all instances of the old base url of {sandbox-name}.api.crm.dynamics or {sandbox-name}.crm.dynamics with {new-sandbox-name}.api.crm.dynamics (and {new-sandbox-name}.crm.dynamics . I'm getting a 401 error now when trying to import data.我们让我们的客户为我们创建了一个新沙箱,以便我们在没有工作流的情况下测试导入(导入在原始沙箱上工作)。我使用带有从 C# 代码发送的证书的 Active Directory 应用程序通过 D365 的身份验证,我的想法是replace all instances of the old base url of {sandbox-name}.api.crm.dynamics or {sandbox-name}.crm.dynamics with {new-sandbox-name}.api.crm.dynamics (and {new-sandbox -name}.crm.dynamics尝试导入数据时出现 401 错误。

I can't find in the Active Directory app where the certificate that we created is tied only to that original sandbox url, so is there something obvious I'm missing?我在 Active Directory 应用程序中找不到我们创建的证书仅与原始沙箱 url 相关联,所以有什么明显的我遗漏了吗?

In your new Sandbox D365 CRM, go and create the Application user in system user table with the right security role/privilege.在您的新 Sandbox D365 CRM 中,go 并在具有正确安全角色/权限的系统用户表中创建应用程序用户。 Then it should work.然后它应该工作。

在此处输入图像描述

Read more 阅读更多

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当我尝试向新创建的订阅中添加新规则时,Client.CreateAsyncRule为.netcore提供了错误 - Client.CreateAsyncRule gives error for .netcore when I'm trying to add a new rule to newly created subscription 尝试将数据插入SQLite时出现错误 - Getting an error when trying to insert data into SQLite 我在尝试连接到“smtp.office365.com”时收到MailKit.Security.SslHandshakeException - I'm getting a MailKit.Security.SslHandshakeException when trying to connect to “smtp.office365.com” 以 json 格式从 Dynamics CRM 365 获取数据 - Getting data from Dynamics CRM 365 in json 尝试在数据集表中插入新行时出现错误 - getting error when trying to insert new row in dataset table Dynamics 365:为什么 .net6 控制台客户端出现“Xrm.Sdk WSDL”错误? - Dynamics 365: why I get "Xrm.Sdk WSDL" error for .net6 console client? 为什么在尝试将数据插入行时出现 SQL 语法错误? - Why am I getting an SQL Syntax error when trying to insert data into a row? 得到错误:使用Azure Functions 2.0连接到Dynamics 365时,“无法加载指定的文件” - Getting error: 'Could not load the specified file', when connecting to Dynamics 365 using Azure Functions 2.0 我在使用C#向Dynamics 365普通用户进行身份验证时遇到错误 - I am getting error on authenticate to dynamics 365 normal user with c# 尝试从Sharepoint存储库读取文件时出现401错误 - Getting 401 error when trying to read file from sharepoint repository
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM