Hi,
You can do this by making the Service Instance dynamic.
Edit the existing Service Instance for the SharePoint site using the SmartObject Service Tester Tool.
Change the Dynamic property to true and complete the update.
This will make a change to the service and will now add a parameter where you can specify the Site URL to use.
You will probably need to regenerate your smartobject after making the service instance dynamic, but it will add a property for the SiteURL which you can specify when calling the GetDocuments method.
Pass the URL of your new site to this property and it will then query the correct site.
I hope this helps!
Regards,
JohanL
Please note that you should never do this when using SharePoint 2013/ SP Online (O 365). This setting does display, but is not supported, and will cause significant havoc in your environment. There is an open bug request to remove this setting from the UI to eliminate confusion.
Thanks,
Gail
Hello Gail,
so whats the best way to create a dynamic SMO in Sharepoint 2013.
Thanks,
CBTs
Unfortunatly, this is still not possible today. The older components that supported the Dynamic SharePoint smartobjects was an entirely different architecture.
I see that you also created a Support Ticket that asks about this functionality. I'll make sure we get that linked to appropriate feature requests.
Thanks, and regards,
Gail