Friday, July 15, 2011

Publish record to Workspaces (Libraries)

Hello all,

I had a hard time searching about how to publish record to workspaces(now Libraries).
but finally i achieved it.Thanks to those who helped me & trusted too.

Here you go:

Publish to SHARED WORKSPACE:


Workspace Name is the choice given by user where he wants to publish the contents
There is also an option if you specify FirstPublishLocationId as id of the shared workspace to which you wish to publish, then you need not to specifically add it to workspace.Just add this line: 

and remove the docLink feature that you can see in the first image.


Publish to PERSONAL WORKSPACE:


doc.FirstPublishLocationID :  We provide user id here indicating that we want to publish the content to the particular user's library.This is necessary to do as there is no API to fetch users personal library Contents.

I have created blobs for testing .You can create blobs depending upon your requirement.
Enjoy Salesforcing.

No comments:

Post a Comment