Get all Lightbox documents

get

/crmRestApi/resources/11.13.18.05/lightboxDocuments

Request

Query Parameters
  • When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". More than one child can be specified using comma as a separator. Example: ?expand=Employees,Localizations. Nested children can also be provided following the format "Child.NestedChild" (Example: ?expand=Employees.Managers). If a nested child is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?expand=Employees.Managers" is the same as "?expand=Employees,Employees.Managers" (which will expand Employees and Managers).
  • This parameter filters the resource fields. Only the specified fields are returned, which means that if no fields are specified, no fields are returned (useful to get only the links). If an indirect child resource is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?fields=Employees.Managers:Empname" is the same as "?fields=;Employees:;Employees.Managers:Empname" (which will only return the "Empname" field for Managers). the value of this query parameter is a list of resource fields. The attribute can be a direct (Example: Employees) or indirect (Example: Employees.Managers) child. It cannot be combined with expand query parameter. If both are provided, only fields will be considered.

    Format: ?fields=Attribute1,Attribute2

    Format for fields in child resource: ?fields=Accessor1:Attribute1,Attribute2
  • Used as a predefined finder to search the collection.

    Format: ?finder=<finderName>;<variableName>=<variableValue>,<variableName2>=<variableValue2>

    The following are the available finder names and corresponding finder variables:

    • LightboxDocumentById: Finds a Lightbox document by the LightboxDocumentId.
      Finder Variables:
      • LightboxDocumentId; string; The unique identifier of the Lightbox document.
    • MyLightboxDocumentsRF: Finds the Lightbox documents that are owned by the current user.
      Finder Variables:
      • PrimaryKey: Finds a Lightbox document by the primary key.
        Finder Variables:
        • LightboxDocumentId; string; The unique identifier of the Lightbox document.
      • SharedLightboxDocumentsRF: Finds the Lightbox documents that are shared with the current user.
        Finder Variables:
        • SubordinatesLightboxDocumentsRF: Finds the Lightbox documents that are shared with the current user, or any of their subordinates.
          Finder Variables:
        • This parameter restricts the number of resources returned inside the resource collection. If the limit exceeds the resource count then the framework will only return the available resources.
        • This parameter can be used to show only certain links while accessing a singular resource or a resource collection. The parameter value format is a comma-separated list of : <link_relation>

          Example:
          self,canonical
        • Used to define the starting position of the resource collection. If offset exceeds the resource count then no resources are returned. Default value is 0.
        • The resource item payload will be filtered in order to contain only data (no links section, for example).
        • This parameter orders a resource collection based on the specified fields. The parameter value is a comma-separated string of attribute names, each optionally followed by a colon and "asc" or "desc". Specify "asc" for ascending and "desc" for descending. The default value is "asc". For example, ?orderBy=field1:asc,field2:desc
        • This query parameter defines the where clause. The resource collection will be queried using the provided expressions. The value of this query parameter is one or more expressions. Example: ?q=Deptno>=10 and <= 30;Loc!=NY

          Format: ?q=expression1;expression2

          You can use these queryable attributes to filter this collection resource using the q query parameter:
          • CreatedBy; string; The user who created the record.
          • CreationDate; string; The date when the record was created.
          • CurrencyCode; string; The currency code associated with the lightbox document. A list of valid values are defined in the lookup ZCA_COMMON_CORPORATE_CURRENCY.
          • CurrentRevision; string; The current version of the document.
          • DocumentDownloadURL; string; The URL to the document.
          • DocumentDownloadedCount; integer; The number of times the document has been downloaded.
          • DocumentOwnerFlag; boolean; The owner of the document.
          • DocumentPageCount; integer; The page count of the user.
          • DocumentSharedToEntityCount; integer; The number of times the document has been shared to objects.
          • DocumentSharedToUserCount; integer; The number of times the document has been shared to users.
          • DocumentThumbnailURL; string; The URL to the document thumbnail.
          • DocumentTitle; string; The title of the document. The default value is the file name without the file extension. You can change the title using the update method.
          • DocumentType; string; The description of the document type.
          • DocumentTypeCode; string; The type of the Lightbox document, for example, Image, PPTX, PDF, Site, etc.
          • DocumentUnsharedFromUserCount; integer; The number of times the document has been unshared from a user.
          • DocumentViewedInLightboxCount; integer; The number of times the document has been viewed in Lightbox.
          • DocumentViewedOutsideLightboxCount; integer; The number of times the document has been viewed outside Lightbox.
          • FileName; string; The file name of the document.
          • FileSize; integer; The file size of the document.
          • IsDocumentReadyFlag; boolean; Indicates if the document is ready for sharing. The default value is true.
          • IsDocumentUploadInProgressFlag; boolean; Indicates whether a document upload is in progress. You cannot access certain functions during the upload process.
          • IsSharedWithCurrentUserFlag; boolean; Indicates whether the document is shared with the current user. A document is visible if the current user is an owner or an administrator, or if the document is shared with them or with a subordinate in their organization.
          • KeyPageSequenceNumber; integer; The page number of the thumbnail.
          • LastUpdateDate; string; The date when the record was last updated.
          • LastUpdateLogin; string; The login of the user who last updated the record.
          • LastUpdatedBy; string; The user who last updated the record.
          • LightboxDocumentId; string; The unique identifier of the Lightbox document.
          • OriginalOwnerEmailAddress; string; The e-mail address of the employee resource who originally uploaded the Sales Lightbox document.
          • OriginalOwnerName; string; The name of the employee resource who originally uploaded the document.
          • OriginalOwnerPartyId; integer; The unique identifier of the original owner of the document. The original owner is the person who first uploaded the document.
          • PublicDocumentDate; string; The date when a document was last made public.
          • PublicDocumentFlag; boolean; Identifies whether a document has been marked as public.
          • SharedDate; string; The date when the document was shared.
          • UploadDate; string; The date when the document was originally shared with the current user, or was last updated. It is used to provide the default sort ordering.
        • The resource collection representation will include the "estimated row count" when "?totalResults=true", otherwise the count is not included. The default value is "false".
        Header Parameters
        • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
        • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.

        There's no request body for this operation.

        Back to Top

        Response

        Supported Media Types

        Default Response

        The following table describes the default response for this task.
        Headers
        • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
        • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
        Body ()
        Root Schema : lightboxDocuments
        Type: object
        Show Source
        Nested Schema : Items
        Type: array
        Title: Items
        The items in the collection.
        Show Source
        Nested Schema : lightboxDocuments-item-response
        Type: object
        Show Source
        Nested Schema : Lightbox Scoring Signals
        Type: array
        Title: Lightbox Scoring Signals
        The resource is used to view the signals captured when a document is downloaded.
        Show Source
        Nested Schema : Lightbox Document Pages
        Type: array
        Title: Lightbox Document Pages
        The Lightbox document page resource is used to view and update the pages within a Lightbox document.
        Show Source
        Nested Schema : Document-shared-with-user Signals
        Type: array
        Title: Document-shared-with-user Signals
        The resource is used to view the signals captured when a document is shared with a user.
        Show Source
        Nested Schema : Document-unshared-with-user Signals
        Type: array
        Title: Document-unshared-with-user Signals
        The resource is used to view the signals captured when a document share with a user is deleted.
        Show Source
        Nested Schema : Document-Viewed-Within-Lightbox Signals
        Type: array
        Title: Document-Viewed-Within-Lightbox Signals
        The resource is used to view the signals that the document is viewed within Lightbox.
        Show Source
        Nested Schema : Document-viewed-outside-Lightbox Signals
        Type: array
        Title: Document-viewed-outside-Lightbox Signals
        The resource is used to view and create the signals captured when document is viewed by a process outside Lightbox.
        Show Source
        Nested Schema : Shared-person Instances
        Type: array
        Title: Shared-person Instances
        The shared person resource is used to view, create, and delete document shares. A document share lets you share the Lightbox document with another user.
        Show Source
        Nested Schema : lightboxDocuments-documentDownloadSignals-item-response
        Type: object
        Show Source
        Nested Schema : lightboxDocuments-documentPages-item-response
        Type: object
        Show Source
        Nested Schema : Page-added-to-cart Signals
        Type: array
        Title: Page-added-to-cart Signals
        The resource is used to view the signals captured when pages of a document are added to cart.
        Show Source
        Nested Schema : Downloaded-from-cart Signals
        Type: array
        Title: Downloaded-from-cart Signals
        The resource is used to view the signals captured when pages within a cart are downloaded by the user.
        Show Source
        Nested Schema : Page-viewed-outside-Lightbox Signals
        Type: array
        Title: Page-viewed-outside-Lightbox Signals
        The resource is used to view and create signals that a Lightbox document's pages are viewed outside Lightbox.
        Show Source
        Nested Schema : lightboxDocuments-documentPages-pageAddedToCartSignals-item-response
        Type: object
        Show Source
        Nested Schema : lightboxDocuments-documentPages-pageDownloadedInCartSignals-item-response
        Type: object
        Show Source
        Nested Schema : lightboxDocuments-documentPages-pageViewedOutsideLightboxSignals-item-response
        Type: object
        Show Source
        Nested Schema : lightboxDocuments-documentSharedToUserSignals-item-response
        Type: object
        Show Source
        Nested Schema : lightboxDocuments-documentUnsharedFromUserSignals-item-response
        Type: object
        Show Source
        Nested Schema : lightboxDocuments-documentViewedInLightboxSignals-item-response
        Type: object
        Show Source
        Nested Schema : lightboxDocuments-documentViewedOutsideLightboxSignals-item-response
        Type: object
        Show Source
        Nested Schema : lightboxDocuments-sharedPersons-item-response
        Type: object
        Show Source
        Back to Top

        Examples

        The following example shows how to get all lightbox documents by submitting a GET request on the REST resource using cURL.

        cURL Command

        curl --basic --user user_name:passwd -X GET https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.0.0/lightboxDocuments/

        Example of Response Body

        The following example shows the contents of the response body in JSON format.

        {
          "LightboxDocumentId": "a4aa6826-d372-4a43-8bee-e72fc3390fc3",
          "DocumentTypeCode": "PDF",
          "FileName": "ADF String_Editor.pdf",
          "OriginalOwnerPartyId": 100010025532672,
          "OriginalOwnerName": "Gabrielle   Lee",
          "OriginalOwnerEmailAddress": "sendmail-test-discard@your_org.com",
          "DocumentOwnerFlag": null,
          "CurrentRevision": "1",
          "KeyPageSequenceNumber": 1,
          "IsDocumentReadyFlag": true,
          "SharedDate": null,
          "CurrencyCode": "USD",
          "DocumentPageCount": 6,
          "DocumentThumbnailURL": "https://servername.fa.us2.oraclecloud.com/crmCommon/lightboxresource/tn/UCMFA099819_1_1~.jpg",
          "FileSize": 616768,
          "DocumentDownloadURL": "https://servername.fa.us2.oraclecloud.com/crmCommon/lightboxresource/doc/UCMFA099819~",
          "DocumentType": "PDF",
          "DocumentDownloadedCount": 0,
          "DocumentSharedToEntityCount": 0,
          "DocumentSharedToUserCount": 0,
          "DocumentViewedOutsideLightboxCount": 0,
          "DocumentViewedInLightboxCount": 2,
          "DocumentUnsharedFromUserCount": 0,
          "DeleteFlag": true,
          "IsSharedWithCurrentUserFlag": false,
          "IsDocumentUploadInProgressFlag": false,
          "UpdateFlag": true,
          "UploadDate": "2016-10-19T03:07:32-07:00",
          "CreationDate": "2016-10-19T03:04:26-07:00",
          "CreatedBy": "SALES_ADMIN",
          "LastUpdateDate": "2016-10-19T03:07:32-07:00",
          "LastUpdatedBy": "SALES_ADMIN",
          "LastUpdateLogin": "3F31475A98262516E053DF00F40A5937",
          "DocumentTitle": "MyPDF File",
         .....
            {
          "LightboxDocumentId": "37d01195-acfd-4d5e-887a-587663ba9cf7",
          "DocumentTypeCode": "PDF",
          "FileName": "AllegraFactLabel.pdf",
          "OriginalOwnerPartyId": 100010032752971,
          "OriginalOwnerName": "Calto,John",
          "OriginalOwnerEmailAddress": "sendmail-test-discard@your_org.com",
          "DocumentOwnerFlag": false,
          "CurrentRevision": "1",
          "KeyPageSequenceNumber": 1,
          "IsDocumentReadyFlag": true,
          "SharedDate": "2016-10-19T01:17:11-07:00",
          "CurrencyCode": "USD",
          "DocumentPageCount": 6,
          "DocumentThumbnailURL": "https://servername.fa.us2.oraclecloud.com/crmCommon/lightboxresource/tn/UCMFA092444_1_1~.jpg",
          "FileSize": 1124898,
          "DocumentDownloadURL": "https://servername.fa.us2.oraclecloud.com/crmCommon/lightboxresource/doc/UCMFA092444~",
          "DocumentType": "PDF",
          "DocumentDownloadedCount": 0,
          "DocumentSharedToEntityCount": 1,
          "DocumentSharedToUserCount": 1,
          "DocumentViewedOutsideLightboxCount": 0,
          "DocumentViewedInLightboxCount": 8,
          "DocumentUnsharedFromUserCount": 0,
          "DeleteFlag": true,
          "IsSharedWithCurrentUserFlag": true,
          "IsDocumentUploadInProgressFlag": false,
          "UpdateFlag": true,
          "UploadDate": "2016-10-19T01:17:11-07:00",
          "CreationDate": "2016-10-07T11:54:05-07:00",
          "CreatedBy": "JCalto",
          "LastUpdateDate": "2016-10-07T11:54:43-07:00",
          "LastUpdatedBy": "JCalto",
          "LastUpdateLogin": "3E4B078EF3CA5D9BE053DF00F40AF341",
          "DocumentTitle": "AllegraFactLabel",
        ....
        }
        Back to Top