Hello, world!
I would like help with a script to move folders within the Content Server using C#, I saw something that I think looked like VB, but I couldn't understand it as I have never done it before.
Thanks in advance <3
@Celumusa B Duma
Unless you want to do this via SOAP(CWS) or REST the easiest way for a starting CS developer is to use the product called Web Reports.
AFAIK SOAP( CWS) consists of downloading the proxies, then utilizing the IDE to find what you need to do. So if you succeed in getting a Node then you can say Node.Move() where Node is a handle to the object you are doing. SOAP UI is a free tool with which you can practice what you will write in a programming language that is how usually people do it. What .NET & Java does is create an envelope similar to what you will see in SOAP UI. OT SOAP forum has an Index page that details how to get started and I think they support both .Net & Java(and many unsupported languages)
The forum link has plenty of starter code https://knowledge.opentext.com/knowledge/llisapi.dll?func=ll&objId=15633041&objAction=view this one shows you how to start , a great hand-holding document https://knowledge.opentext.com/knowledge/llisapi.dll?func=ll&objId=67792619&objAction=browse&viewType=1
OT like every other organization is slowly moving to REST
REST is usually you can do GET, POST, PUT which means many different things Get as you can imagine is finding, PUT & POST are update operations. This forum is the correct forum for REST also to see its examples one goes to developer.opentext.com Like SOAPUI for doing REST one uses POSTman and having understood its working change it to some language.
In case you want to do WR and have the rights to do it this is how the code would look like
[LLREPTAG_'12345' NODEACTION:MOVE:78910 /]
The above is like saying I have an Object whose URL(Dataid) is 12345 and I would like it to go to a Folder(78910)
In reality, you would change those hard codes to something more useful like coming from a file or a live report.
@Appu Nair Thanks a lot, although I seem to be having trouble accessing the links you provided above, I am not sure why, it could be that I don't have the privileges to access it, and I might need to ask for help from someone within my organization.