Thursday, April 16, 2009

Specify a destination library when using Remote Actions URL extension

Question
When constructing a "Remote Action" URL, is there a way to specify a destination library?

Answer
A remote action is triggered using the query string parameter ?wcmAuthoringAction=action, where action is one of the following:


new
This is used to open new item form. You must also specify a "type" parameter.


For example:

* ?wcmAuthoringAction=new&type=com.ibm.workplace.wcm.api.WCM_Content


Now if you want to create a new content and also want to specify a destination library, then you must use &library=libraryName.