Subscribe

The UiPath Marketplace Guide

Initialize Record

The Initialize Record activity uses the the NetSuite initialize operation to update a specific record (internalid).

After initializing the record, the activity outputs the new record of the initialization in a Record object (Record) that you can use in a subsequent activity. The status of the request and success/failure information will be set in a ResponseStatus object (NetSuiteStatus) that you can use in subsequent activities (e.g., conditional logic).

How it works

The following steps and message sequence diagram is an example of how the activity works from design time (i.e., the activity dependencies and input/output properties) to run time.

  1. Complete the Setup steps.
  2. Add the NetSuite Application Scope activity to your project.
  3. Add the Initialize Record activity inside the NetSuite Application Scope activity.
  4. Click the Configure button inside the Initialize Record activity. This allows you to set the input parameters.
  5. Select the Record Type of the record type you want the initialization to create.
  6. Select the Reference Type of the record type you want to initialize.
  7. Enter the Reference Id for the internalid of the reference record that will be initialized.
  8. Create an enter a Record variable that will contain the newly created record.
  9. Create and enter a ResponseStatus variable for the Output property.

Properties

The values for the following properties are specified when adding this activity to your project in UiPath Studio.

Configure

To enter your Initialize Record property values, you must use the Input Dialog by clicking the Configure button.

Common

DisplayName

The display name of the activity.

Attributes

Details

Type

String

Required

Yes

Default value

Update Record

Allowed values

Enter a String or String variable.

Notes

N/A


Input Dialog

RecordType

The record type to create and initialize.

ReferenceType

The record type from which to initialize the record.

ReferenceId (string)

The Id of the record from which to initialize.


Misc

Private

If selected, the values of variables and arguments are no longer logged at Verbose level.

Attributes

Details

Type

Checkbox

Required

No

Default value

Not Selected

Allowed values

Selected or Not Selected

Notes

N/A


Output

Record

The initialized record as returned by NetSuite.

Attributes

Details

Type

Record

Required

No (required if you want to use the output data in subsequent activities)

Default value

Empty

Allowed values

Enter a Record variable.

UiPath.OracleNetSuite.Com.netsuite.webservices.Record

Notes

The Record object is not saved by default but is the output of a the initialization transformation. Use the Insert Record activity to save this record with any additional fields that need to be set.

NetSuiteStatus

The status of the request (success/failure information).

Attributes

Details

Type

ResponseStatus

Required

No (required if you want to use the output data in subsequent activities)

Default value

Empty

Allowed values

Enter a ResponseStatus variable.

UiPath.BAF.Models.ResponseStatus

Notes

The ResponseStatus object includes three properties that you can use in other activities.
Success - Boolean - Specifies whether the request was successful.
ErrorCode - String - The response error if the request is unsuccessful (Success=False).
Message - String - The error message.
The example image below shows some of the properties that you can return.


Example

The following image shows an example of the activity dependency relationship and input/output property values.

Updated 6 months ago


Initialize Record


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.