# 플로 (Flows)

* 톱니 바퀴![](https://2029041223-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTQhsBFkZ51BlLLmWPGbG%2Fuploads%2FoeQc5B0gYK6iuuBeD0EJ%2Fimage.png?alt=media\&token=03f7096b-0e9b-431a-aea3-e5938431ab3f) > \[설정(Setup)] > 빠른 찾기 상자(Quick Find)에 '플로(Flows)' 입력 > \[플로(Flows)] > \[새 플로(New Flow)] > \[레코드 트리거형 플로(Record-Triggered Flow)] > \[만들기(Create)] > 아래 시작 구성 화면과 동일하게 입력 > \[완료(Done)]

<figure><img src="https://2029041223-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTQhsBFkZ51BlLLmWPGbG%2Fuploads%2FGbqJx4FgfQm53pkSZwQ0%2Fimage.png?alt=media&#x26;token=b478211c-f9fd-4f74-8a15-32fb4890d401" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2029041223-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTQhsBFkZ51BlLLmWPGbG%2Fuploads%2FlfOoSSFczou91QnQSqfc%2Fimage.png?alt=media&#x26;token=c1b55b65-590c-4da6-a970-1e0fb812c759" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2029041223-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTQhsBFkZ51BlLLmWPGbG%2Fuploads%2F8IkFSB2YLMPbTxkRNHNH%2Fimage.png?alt=media&#x26;token=80a78747-15f9-43d3-95ab-dc74aef1a15c" alt=""><figcaption><p>시작 구성 화면 (Configure Start)</p></figcaption></figure>

* 다음 순서로 모든 요소 생성 > \[저장(Save)] > \[활성화(Activate)]를 클릭합니다.
  * \+ 버튼을 이용하여 요소를 추가할 수 있습니다.
  * 명시되지 않은 항목은 설정되어있는 기본 값을 이용합니다.
  * 해당 플로의 이름을 'SC\_talkSession status update when owner changed via omni channel​'로 하여 저장합니다.

<figure><img src="https://2029041223-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTQhsBFkZ51BlLLmWPGbG%2Fuploads%2FsYr0rBQCvBcJEvSuVNqr%2Fimage.png?alt=media&#x26;token=f9c65b0a-2e86-48eb-936e-4c269c59ff6e" alt=""><figcaption></figcaption></figure>

| Element                                   | 결정(Decision)                 |
| ----------------------------------------- | ---------------------------- |
| Label                                     | Agent Work Status            |
| Outcome Details                           |                              |
| Label                                     | Status is assigned           |
| Condition Requirements to Execute Outcome | All Conditions Are Met (AND) |
| Resource                                  | {!$Record.Status}            |
| Operator                                  | Equals                       |
| Value                                     | Opened                       |

| Element                | 레코드 가져오기(Get Records)        |
| ---------------------- | ---------------------------- |
| Label                  | Get TalkSession              |
| Object                 | Chat Session                 |
| Condition Requirements | All Conditions Are Met (AND) |
| Field                  | Id                           |
| Operator               | Equals                       |
| Value                  | {!$Record.WorkItemId}        |

| Element                                   | 결정(Decision)                 |
| ----------------------------------------- | ---------------------------- |
| Label                                     | Is TalkSession Null          |
| Outcome Details                           |                              |
| Label                                     | TalkSession is Not null      |
| Condition Requirements to Execute Outcome | All Conditions Are Met (AND) |
| Resource                                  | {!Get\_TalkSession\_Record}  |
| Operator                                  | Is Null                      |
| Value                                     | {!$GlobalConstant.False}     |

| Element  | 할당(Assignment)                                  |
| -------- | ----------------------------------------------- |
| Label    | Set TalkSession                                 |
| Variable | {!Get\_TalkSession\_Record.WINP\_\_Status\_\_c} |
| Operator | Equals                                          |
| Value    | Chatting                                        |
| Variable | {!Get\_TalkSession\_Record.OwnerId}             |
| Operator | Equals                                          |
| Value    | {!$User.Id}                                     |

| Element                                            | 레코드 업데이트(Update Records)                                            |
| -------------------------------------------------- | ------------------------------------------------------------------- |
| Label                                              | Update TalkSession                                                  |
| How to Find Records to Update and Set Their Values | Use the IDs and all field values from a record or record collection |
| Condition Requirements                             | All Conditions Are Met (AND)                                        |
| Record or Record Collection                        | {!Get\_TalkSession\_Record}                                         |

| Element                | 레코드 가져오기(Get Records)                                      |
| ---------------------- | ---------------------------------------------------------- |
| Label                  | Get TalkCustomer                                           |
| Object                 | Chat Customer                                              |
| Condition Requirements | All Conditions Are Met (AND)                               |
| Field                  | Id                                                         |
| Operator               | Equals                                                     |
| Value                  | {!Get\_TalkSession\_Record.WINP\_\_Talk\_Customer\_\_r.Id} |

| Element  | 할당(Assignment)                        |
| -------- | ------------------------------------- |
| Label    | Set AgentId                           |
| Variable | {!GetTalkCustomer.WINP\_\_Agent\_\_c} |
| Operator | Equals                                |
| Value    | {!$User.Id}                           |

| Element                                            | 레코드 업데이트(Update Records)                                            |
| -------------------------------------------------- | ------------------------------------------------------------------- |
| Label                                              | Update TalkCustomer                                                 |
| How to Find Records to Update and Set Their Values | Use the IDs and all field values from a record or record collection |
| Condition Requirements                             | All Conditions Are Met (AND)                                        |
| Record or Record Collection                        | {!GetTalkCustomer}                                                  |
