# 공유하기(share)

외부 채널과 데이터를 공유할 수 있는 팝업창을 띄워주는 동작을 수행해요. 주로 공유하기 아이콘 액션 설정에 사용해요.&#x20;

<div align="left"><figure><img src="/files/MttO4lhqXH5zzH0pbwUn" alt="" width="563"><figcaption></figcaption></figure></div>

오마이앱에서 테스트할 경우, 아래의 값을 입력해 주세요.&#x20;

* prefix :  ohmyapp
* 도메인 url : <https://ohmyapp.io>
* 이미지 URL : 설정한 URL의 이미지가 함께 공유돼요.&#x20;
  * ${항목ID} 형식으로 작성 시, 해당 항목 ID의 데이터가 함께 공유돼요.&#x20;
* 제목 : 설정한 제목으로 데이터가 공유돼요.&#x20;
  * ${항목ID} 형식으로 작성 시, 해당 항목 ID의 데이터가 공유돼요.
* 설명 : 설정한 설명과 함께 데이터가 공유돼요.&#x20;
  * ${항목ID} 형식으로 작성 시, 해당 항목 ID의 데이터가 공유돼요.

{% hint style="info" %}
출시 전, [가이드](/main/guide/faq/action/shareaction.md)를 참고하여 반드시 prefix 와 도메인 url 값을 수정해 주세요.
{% endhint %}

아이콘을 클릭하면, 설정한 **공유하기** 액션에 따라 공유할 채널을 선택할 수 있는 팝업창을 띄워줘요.&#x20;

<figure><img src="/files/tcHwdxy9SqJUxOGL8qST" alt=""><figcaption></figcaption></figure>

> \#공유 #공유하기 #공유채널 #외부채널공유 #공유설정 #sns공유 #파일공유

2023.11.13 Jinny


---

# Agent Instructions: 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:

```
GET https://docs.ohmyapp.io/main/guide/develop_app/command-execute-function/action/share.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
