> For the complete documentation index, see [llms.txt](https://docs.apica.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apica.io/platform-docs/test-data-orchestrator-tdo/user-documentation/tdo-project-builder-user-guide/data-assignment/assign-a-value-using-string-concatenation.md).

# Assign a Value using String Concatenation

To begin, select the field you will be working with and create the rule container.  Click 'Compose' in the 'Operands' pane to open the Rule page.

When concatenating strings, you can use fields from data views, fixed values, spaces and special characters, and functions to create the final string.  This example is to create a transaction ID for the response message.

Mathematical operators are available to use from the 'Operator' line in the 'Operators' pane.  Click on the down arrow to the right of this line to see the available operators.  While most of these are purely mathematical operators for fields defined as Number, the first two are also String operators.

Assign - Apply will always be used for the first field.  Add, when working with a string field, also acts as a Concatenate operator.

In the example below, we are building a field that contains multiple codes in a specific format for a file coming in from an external web site.  The field standard is ':RET:9999-9^:RET:9999-9.  In this case, the numeric codes are coming from a look up table, and the remainder is a fixed value.  So the rule is set up to concatenate these values in the format 'string+field+string+field'.

<figure><img src="/files/u2pzC34DqpxmOGa7lche" alt=""><figcaption><p>Concatenating multiple fields and values using the 'ADD' operand</p></figcaption></figure>

When assembled, the output of this field is shown below.

<figure><img src="/files/vfUA68ef2msa8f94Wi2R" alt=""><figcaption><p>Assembled data from a concatenation rule</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.apica.io/platform-docs/test-data-orchestrator-tdo/user-documentation/tdo-project-builder-user-guide/data-assignment/assign-a-value-using-string-concatenation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
