Salesforce 如何创建销售队伍';用户';使用RESTAPI?

Salesforce 如何创建销售队伍';用户';使用RESTAPI?,salesforce,Salesforce,我正在尝试在SFDC中创建一个用户,并在Java客户机上使用RESTAPI。 请查看下面的代码,并帮助我理解为什么我会收到下面的错误消息: HTTP Status 400 :: { errorCode: "NOT_FOUND" message: "The requested resource does not exist" } 代码: 我使用Chrome Postman插件发布了以下内容: 请注意,资源URL被设置为:(我假设您位于AP1上,基于ProfileId中的) 我得到的答复是: [

我正在尝试在SFDC中创建一个用户,并在Java客户机上使用RESTAPI。 请查看下面的代码,并帮助我理解为什么我会收到下面的错误消息:

HTTP Status 400 ::
{
errorCode: "NOT_FOUND"
message: "The requested resource does not exist"
}
代码:


我使用Chrome Postman插件发布了以下内容:

请注意,资源URL被设置为:(我假设您位于AP1上,基于ProfileId中的)

我得到的答复是:

[
    {
        "message": "Duplicate Username.<br>The username already exists in this or another Salesforce organization. Usernames must be unique across all Salesforce organizations. To resolve, use a different username (it doesn't need to match the user's email address). ",
        "errorCode": "DUPLICATE_USERNAME",
        "fields": [
            "Username"
        ]
    }
]

特别是,请检查
instanceURL

上是否没有尾随斜杠。我使用Chrome Postman插件发布了以下内容:

请注意,资源URL被设置为:(我假设您位于AP1上,基于ProfileId中的)

我得到的答复是:

[
    {
        "message": "Duplicate Username.<br>The username already exists in this or another Salesforce organization. Usernames must be unique across all Salesforce organizations. To resolve, use a different username (it doesn't need to match the user's email address). ",
        "errorCode": "DUPLICATE_USERNAME",
        "fields": [
            "Username"
        ]
    }
]

特别是,请检查
instanceURL

上是否没有尾随斜杠。也许您的帐户没有访问用户对象的权限?也许您的帐户没有访问用户对象的权限?
[
    {
        "message": "Duplicate Username.<br>The username already exists in this or another Salesforce organization. Usernames must be unique across all Salesforce organizations. To resolve, use a different username (it doesn't need to match the user's email address). ",
        "errorCode": "DUPLICATE_USERNAME",
        "fields": [
            "Username"
        ]
    }
]
https://ap1.salesforce.com/services/data/v29.0/sobjects/User