---
schema_version: "1"
id: f2c5b377200615a3f243fe759ff0ebc15e2ade8d4b76ee13d53823401f27fc25
title: Share Quote Based on Account Action
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/life_sciences_dev_guide/ls_actions_share_quote_based_on_account.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/ls_actions_share_quote_based_on_account.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: c2ca6a1cd255bedd42b3eaff397238c496d2b7ba972993db02f80f30a86bd0eb
description: Synchronizes Quote sharing with Account sharing by querying AccountShare records for the specified Quote account ID and upserting the corresponding QuoteShare records.
---
# Share Quote Based on Account Action

Synchronizes Quote sharing with Account sharing by querying AccountShare records for the specified Quote account ID and upserting the corresponding QuoteShare records.

This action is available in API version 68.0 and later.

This action only modifies records where the RowCause is set to LSC4CEAutoShare. It is designed for use in record-triggered flows (after save) and scheduled batch jobs for bulk processing.

## Supported REST HTTP Methods

**URI**: /services/data/vXX.X/actions/standard/shareQuoteBasedOnAccount

Where XX.X is the latest API version.

**Formats**: JSON, XML

**HTTP Methods**: POST

**Authentication**: Authorization: Bearer TOKEN

Where TOKEN is your OAuth access token.

## Inputs

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d494491e107">Input</th>

              <th class="featureTableHeader  " id="d494491e110">Type</th>

              <th class="featureTableHeader  " id="d494491e113">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d494491e107" data-title="Input"><span class="keyword parmname">recordId</span></td>

              <td class="entry" headers="d494491e110" data-title="Type">String</td>

              <td class="entry" headers="d494491e113" data-title="Description">Required<p class="p">ID of the Quote record to be shared.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d494491e107" data-title="Input"><span class="keyword parmname">accessLevel</span></td>

              <td class="entry" headers="d494491e110" data-title="Type">String</td>

              <td class="entry" headers="d494491e113" data-title="Description">Required<p class="p">Level of access granted for the shared Quote. Valid values are <samp class="codeph nolang">Edit</samp> and <samp class="codeph nolang">Read</samp>.</p>
              </td>

            </tr>

          </tbody>

        </table>

## Outputs

| Output | Type | Description |
| --- | --- | --- |
| shareRecordsCreated | Integer | Number of Quote share records created based on the account sharing information. |
| shareRecordsUpdated | Integer | Number of Quote share records updated based on the account sharing information. |
| shareRecordsDeleted | Integer | Number of Quote share records deleted based on the account sharing information. |
| isSuccess | Boolean | Indicates whether the Quote sharing operation completed successfully (true) or not (false). |

## Example

Sample Request

{
          "inputs": \[
          {
          "recordId": "0Q0xx0000004C92GAE",
          "accessLevel": "Read"
          }
          \]
          }
        

Sample Response

\[
          {
          "actionName": "shareQuoteBasedOnAccount",
          "errors": null,
          "isSuccess": true,
          "outputValues": {
          "shareRecordsCreated": 2,
          "shareRecordsUpdated": 0,
          "shareRecordsDeleted": 0,
          "isSuccess": true
          }
          }
          \]