Mule 4:Salesforce:未为此组织或合作伙伴启用API

问题描述

场景:Mule 4和Salesforce集成。

  1. 在Salesforce中创建了一个开发人员帐户。
  2. 在Salesforce中创建了一个自定义对象,用于通过Mulesoft加载数据。
  3. 在m子4中,使用Salesforce Query组件并提供SF用户名,密码和安全令牌,并进行了“测试连接”。

问题:出现错误

org.mule.runtime.api.connection.ConnectionException: org.mule.runtime.api.connection.ConnectionException: API is not enabled for this Organization or Partner
  org.mule.runtime.api.connection.ConnectionException: org.mule.runtime.api.connection.ConnectionException: API is not enabled for this Organization or Partner
  Caused by: org.mule.runtime.api.connection.ConnectionException: API is not enabled for this Organization or Partner
  Caused by: org.mule.runtime.api.connection.ConnectionException: API is not enabled for this Organization or Partner
  Caused by: [UnexpectedErrorFault [ApiFault  exceptionCode='API_disABLED_FOR_ORG'
   exceptionMessage='API is not enabled for this Organization or Partner'
   extendedErrorDetails='{[0]}'
  ]
  ]

当我检查解决方案时,发现以下步骤:

  1. 转到设置->管理用户->配置文件->系统管理员->编辑配置文件
  2. 但是在“管理偏好设置”中,我看不到enable API选项。

enter image description here

但是当我在“管理设置”下进行检查时,看不到启用API的选项。

请帮助。

谢谢。

解决方法

您的许可证级别(Platinum?)可能没有API管理。请咨询您的Mulesoft销售代表。 我猜是因为我们有这样的许可证,而且没有API管理。