---
sourceDocument: Yokohama Build workflows
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/yokohama/build-workflows

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama Build workflows

ft:clusterId :

    - crworkflow

bundleId :

    - crworkflow

workflow :

    - Creator


---

# Record Producer action

# Record Producer action {#ariaid-title1}

Release version: Yokohama  
Updated January 30, 2025  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Record Producer action

The Record Producer action enables you to create a Task record from a Record Producer Catalog Item \[sccatitem\] in ServiceNow.
The created Task inherits values from the catalog item's variable inputs, facilitating automated task creation based on user-submitted catalog data.
Show full answer Show less  

## Key Features

* **Availability:** Available as a Workflow Studio action for users with the `flowdesigner` or `admin` roles.
* **Inputs:**
  * **Catalog Item:** Reference to the catalog item used to create the Task.
  * **Catalog Item Inputs:** String containing catalog variables associated with the catalog item, which can be viewed under Service Catalog \> Catalog Definitions \> Record Producers.
  * **Don't fail on error:** Boolean input indicating whether the action should continue on error.
* **Outputs:**
  * **Table:** Name of the table where the Task record was created.
  * **Record:** Reference to the created Task record.
  * **Error Message:** Details of any errors encountered during record creation.
  * **Status:** Numeric completion status indicating success (0) or error (1).

## Error Handling

If record creation fails due to complex logic inserting records into other tables, the action aborts and an error message is displayed in execution details: "Record generation failed, check logs to get more information."

## Design Considerations

* Escape quotation marks in string data pills using the **String Replace** transform function to avoid JSON formatting errors when handling complex string variables.
* Use transform functions to validate data pills before passing them as inputs to ensure data integrity.

## Practical Application for ServiceNow Customers

This action streamlines task creation from catalog items by automating the record generation process while preserving user input variables. Customers can incorporate this action into flows to enhance service catalog automation, ensuring tasks are created accurately and efficiently. Proper handling of string data and error management is essential for smooth flow execution.  

Create a Task record from a Record Producer Catalog Item \[sc_cat_item\]. The Task record inherits values from the catalog item's variable values.

## Roles and availability {#record-producer-flow-designer__section_pwq_rb5_kcb}

Available as a Workflow Studio ServiceNow core action. Users with the flow_designer or admin role can add an action to a flow and define configuration details.

## Inputs {#record-producer-flow-designer__section_qzq_3ny_lnb}

Provide a value for each input that your action needs. To add dynamic values, you can also drag and drop pills from the Data panel or select them from the pill picker.  
{#record-producer-flow-designer__table_yrx_kny_lnb__entry__3}

| Input | Data type | Description |
|-|-|-|
| Catalog Item | Record | Reference to catalog item used to create a Task record. |
| Catalog Item Inputs | String | Catalog variables associated with the catalog item you choose. You can view associated catalog variables for Catalog Items from Service CatalogCatalog DefinitionsRecord Producers. |
| Don't fail on error | True/False | Catalog variable indicating whether to fail on error. |
[ ]

{#record-producer-flow-designer__table_yrx_kny_lnb}

## Outputs {#record-producer-flow-designer__section_kyg_qny_lnb}

These outputs appear in the Data panel. You can use them as inputs elsewhere in your flow.  
{#record-producer-flow-designer__table_szc_rny_lnb__entry__3}

| Output | Data type | Description |
|-|-|-|
| Table | Table Name | Table where Task record was created. |
| Record | Record | Reference to Task record created. |
| Error Message | String | Error message produced when the record operation fails. |
| Status | Choice | Completion status of the action. The flow execution details page displays one of these numeric values. * Success \[0\]: The action succeeded. * Error \[1\]: The action produced an error. {#record-producer-flow-designer__ul_flw_nsy_zmb} |
[ ]

{#record-producer-flow-designer__table_szc_rny_lnb}

## Error messages {#record-producer-flow-designer__section_sqv_cmp_pnb}

If an error occurs with this action, the following error messages appear in the [execution details](https://servicenow-prod.fluidtopics.net/upNbleER53mq_EkbtRKfDg "View run-time information about an action or flow directly from the design environment, such as the current state, items run, and values produced. Open related records from embedded ServiceNow AI Platform editors or in a new tab.") page.  
{#record-producer-flow-designer__table_l5d_3mp_pnb__entry__2}

| Error message | Description |
|-|-|
| Record generation failed, check logs to get more information. | This error typically occurs when your flow or action contains logic to insert a record or records into other tables. When this logic exists, the Record Producer action aborts inserting the record into the table. |
[ ]

{#record-producer-flow-designer__table_l5d_3mp_pnb}

## Design considerations {#record-producer-flow-designer__section_tvl_db4_45b}

Follow these design considerations when creating flows that contain Record Producer
actions.

Escape quotation marks from string data pills with the String Replace transform
function
:   Complex string variables are converted into JSON format when stored in the system. To
    prevent any JSON formatting errors, you can use a Replace String transform function to
    escape the quotation marks present in any string data pills you use for catalog
    variables. See [String transform functions](https://servicenow-prod.fluidtopics.net/Ml8mnETlETOsOoY3FeFX9w "Use string transform functions to reformat or perform calculations on String data pills.").

Use transform functions to validate data pills
:   Whenever you use a data pill to provide data for an action input, you can use a
    transform function to validate the data. See [Transform functions](https://servicenow-prod.fluidtopics.net/Z4yavwFivEHqB_M9bzqTPQ "Transform data pill values without the need to write a script. Use transform functions to reformat text, perform mathematical calculations, sanitize potentially unsafe SQL statements, and serialize complex objects to raw XML.") for a list of available transform
    functions.

*[\>]: and then


