Best approach to surface documents stored in salesforce in appian ?

Hi,

     We want to surface/view (not store ) salesforce documents in Appian . We already have an Salesforce connected system , we uses  SOQL integrations to expose the data points . I was just wondering can we use SOSL with the same connected system to return the documents (using RETURNING Document clause in SOSL).  Not sure whether SOSL can return docs . Or we need integrations with salesforce REST api to get the documents in Appian . Our users just have to view the documents on demand. We don't want to save them as Appian docs. Can anyone worked on similar use cases . Your inputs will be appreciated.

Thanks in advance,

Mike 

  Discussion posts and replies are publicly visible

Parents
  • Hi  ,

    Yes, SOSL can return documents, but with important limitations. SOSL supports returning Document objects using the RETURNING Document clause. However, this approach has significant constraints like SOSL can return metadata about documents (like Document ID, Name, etc.) but cannot return the actual document content or binary data.

    But I would prefer for actually viewing document content, you'll need to use Salesforce's REST API, which is the more appropriate solution for your use case. You can use this endpoint "Get actual file content" from Salesforce Documentation.

    Since you already have a Salesforce connected system in Appian, you can:

    1. Keep your existing SOQL integrations for metadata retrieval.

    2. Add REST API Integration specifically for document content retrieval.

Reply
  • Hi  ,

    Yes, SOSL can return documents, but with important limitations. SOSL supports returning Document objects using the RETURNING Document clause. However, this approach has significant constraints like SOSL can return metadata about documents (like Document ID, Name, etc.) but cannot return the actual document content or binary data.

    But I would prefer for actually viewing document content, you'll need to use Salesforce's REST API, which is the more appropriate solution for your use case. You can use this endpoint "Get actual file content" from Salesforce Documentation.

    Since you already have a Salesforce connected system in Appian, you can:

    1. Keep your existing SOQL integrations for metadata retrieval.

    2. Add REST API Integration specifically for document content retrieval.

Children
No Data