With the above information, I am trying to create a bookmark on an other server using the 'CreateBookmark' method. Based on the engine api explorer, the 'CreateBookmark' method takes the following parameters:
I was able to create a bookmark by adding 'qInfo' and providing 'title' and 'description' as shown below but I am not able to figure out how the dimensions (qFieldItems in the exported book mark above) are provided in the parameter list while creating a bookmark using the 'CreateBookmark' method.
Re: How to specify dimensions while creating a bookmark using the engine api
This trick worked for the dynamic bookmarks. For dynamic bookmarks, GetBookmarks() method also returned the expression of the bookmark. With the available information from the GetBookmarks() method, I was able to the get the field using the GetField() method and select the columns by providing the match (again obtained from the GetBookmarks() method) in the Select() method. After performing the same in all fields and doing CreateBookmark() automatically added the expression with selections.
However, this is limited to bookmarks that are created with expression (by searching in the list box). It does not work for book marks that are created by making the selections in the UI. Here is a sample code: