
Bob Killion asked a question.
We recently implemented a custom integration with Salesforce using Sharefile's API. We have some processes that create files and trigger invites to be sent to those files for upload or download. A few of the messenger log entries in Sharefile from these processes are not showing a recipient of the share (It just shows a blank space- see below). Can you help us understand why that might be? We are using sf/v3/Shares/Request and sf/v3/Shares/Send endpoints. It is not clear on the blank logs who the message was intended for and if they received it or not.
Hi Bob,
Any clear, defining characteristics of the specific calls that are failing to display the recipient? Request vs Send, missing contact info from Salesforce, etc?
As per api.sharefile.com, Request vs Share links should be established in the request payload, to the same endpoint rather than separate endpoints.
In my quick testing, specifying a recipient that's not already an existing user on your ShareFile account should produce an error, but still show "Anonymous" in the message history; likewise, leaving a recipient off entirely will produce a response with a link (with no authentication required) but also still show "Anonymous" in the message history.
My most immediate suggestion is to retry with the officially supported endpoints. If this continues, any additional context you're able to share would be helpful.
To send:
POST to https://account.sf-api.com/sf/v3/Shares?notify=false
{
"ShareType":"Send",
"Title":"Sample Send Share",
"Items": [ { "Id":"itemid01" }, { "Id":"itemid02" } ],
"Recipients":[ { "User": { "Id":"userid" } }, { "User": { "Email": "user@email" } } ],
"ExpirationDate": "2013-07-23",
"RequireLogin": false,
"RequireUserInfo": false,
"UsesStreamIDs": false
}
To request:
https://account.sf-api.com/sf/v3/Shares?notify=false
{
"ShareType":"Request",
"Title":"Sample Request Share",
"Recipients":[ { "User": { "Id":"userid" } }, { "User": { "Email": "user@email" } } ],
"Parent": { "Id":"folderid" },
"ExpirationDate": "2013-07-23",
"RequireLogin": false,
"RequireUserInfo": false,
"TrackUntilDate": "2013-07-23",
"SendFrequency": -1,
"SendInterval": -1
}