- 概述
- Adobe Sign
- Alteryx
- Amazon Comprehend
- Amazon Connect
- Amazon Rekognition
- 亚马逊文本提取
- Box
- 认知
- DocuSign
- Google Vision
- Jira
- Marketo
- Microsoft Dynamics
- Microsoft Dynamics (Finance and Operations)
- Microsoft Teams
- Microsoft Translator
- Microsoft Vision
- Oracle 集成云
- Oracle NetSuite
- Salesforce
- SAP BAPI
- ServiceNow
- Slack
- Smartsheet
- SuccessFactors
- Tableau
- Twilio
- Workato
- Workday
传统“集成”活动
UiPath.ServiceNow.Activities.InsertRecord
“插入 ServiceNow 记录”活动使用 ServiceNow表格 - POST API 插入新记录对象。
After inserting the record, the activity outputs the status of the request (success/failure information) in a ResponseStatus object (ServiceNowStatus) that you can use in subsequent activities (e.g., conditional logic).
此活动还将返回新记录对象的sys_id值。例如,如果要插入 ServiceNow事件对象,则可以通过在对象向导中添加String变量来输出sys_id值(请参阅下面的示例)。
工作方式
以下步骤和消息序列图是活动从设计时(即活动依赖项和输入/输出属性)到运行时如何工作的示例。
- 完成设置步骤。
- 将“ServiceNow 作用域”活动添加到您的项目中。
- Add the Insert ServiceNow Record activity inside the ServiceNow Scope activity.
- Click the Configure button inside the Insert ServiceNow Record activity (this opens the Object Wizard).
- Select the Object you want to insert and add the fields (with values) you want to populate.
- 为“输出”属性创建并输入
ResponseStatus变量。-
您的输入属性值将发送到“表格 - POST API”。
-
API 会将
ResponseStatus值返回到您的输出属性变量。
-
在活动正文中
To enter your Insert ServiceNow Record property values, you must use the Object Wizard by clicking the Configure button.
要了解有关对象向导的更多信息,请参阅业务活动框架页面。
- sys_id - The id of the ServiceNow record that gets created. Enter a
Stringvariable. The sys_id is auto-generated by ServiceNow when you insert your new record. To retrieve this value for use in other activities, create and enter aStringvariable in the object wizard (example shown below).
属性
如果您看不到所选对象的属性列表,即使选择了“添加多个字段”选项,您可能也没有足够的权限在 ServiceNow 中查看对象元数据和修改数据。有关更多详细信息,请参阅权限问题故障排除。
高级
- AdditionalFields - A
DataRowthat includes the columns and values that you want to insert. The column names must match the names as they appear in the ServiceNow database table for the selected object type.
常见
- “显示名称”- 活动的显示名称。此字段仅支持
Strings或String变量。
其他
- “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。
输出
- ServiceNowStatus - The status of the request (success/failure information). Enter a
ResponseStatusvariable (UiPath.BAF.Models.ResponseStatus). TheResponseStatusobject includes three properties that you can use in other activities.- Success -
Boolean- Specifies whether the API request was successful. - ErrorCode -
String- The response error if the API request is unsuccessful (Success=False). - Message -
String- The error message.
- Success -
示例
下图显示了活动依赖关系和输入/输出属性值的示例。
有关分步说明和示例,请参阅快速入门指南。