I'm fairly new to programming in Objective C. I am trying to post an item to a Sharepoint list. The way that I have to post to this is to overlay another object in the list, but also to create a new object right after that. I'm a bit confused on what to do and have already made a connection to the list to receive data from it, but do not know how to post to it.
Any help is greatly appreciated.
SharePoint's List Web Service has the methods that allows you to create new items. Check this MSDN reference.
Related
Problem
I need to get online presence status from Microsoft Outlook using VBA.
The status is presented as a green-yellow-red-grey light displayed near the contact name and usually provided by some instant message(IM) application (e.g. Teams, Skype, Zoom, Jabber etc.).
Here is how it is usually look:
Available data
Unfortunately the status is not available in Outlook structures AddressEntry or ExchangeUser, which are pretty easy to acquire.
Note: Please do not confuse online presence with calendar availability, which can easily retrieved using function GetFreeBusy.
Alternative view
The only relevant and pretty decent description related to the topic I found here: https://learn.microsoft.com/en-us/office/client-developer/shared/integrating-im-applications-with-office .
But here the topic is presented from the different angle - what should be done from the IM application side to provide this status. In short: the IM app should add some data to the registry under ...\Software\IM Providers\... and implement interface IUCOfficeIntegration, so Outlook can use it to retrieve the status.
So an intermediate idea was to retrieve the status via this interface from the IM app directly. But there is very few information about calling COM interfaces from VBA.
Does anyone can provide any hints how the status can be retrieved?
The Outlook object model doesn't provide any property or method for that. Graph API provides the Get presence methods for that.
You can use Graph for that. I don't think you'd be able to use VBA though.
https://learn.microsoft.com/en-us/graph/api/presence-get?view=graph-rest-1.0&tabs=http
Is it possible to copy an insight through the API? I know it's possible to "save as new" an insight through the designer, but I would like to do so programmatically.
any insight is metadata object, so basically it should be enough to post the same body to metadata resource: address is /gdc/md/<project ID>/obj?createAndGet=true and body the same like the original one (you fetch it with GET to /gdc/md/<project ID>/obj/<your object ID> as visible in address bar.
Those help pages might help (the principle is the same inside the project):
Migrate objects between projects
I've building a new RESTful API and was looking for clarification. It is ok to use POST to update and PUT to create?
Also, if I try to create an item that can only have one instance in my id (think a list of types), what would my http error code be? 409?
Is it possible to define or declare a collection inside another collection in json store IBM worklight. like- Objects will have sub objects. Let me know the API or whatever syntax needs to be followed.
Thanks in Advance.
I don't see why not. You could just simply stringify the JSONStore collection object and store it as a record in another collection, but if you are talking about joining two different collection using a common index you can do that using additional search fields. I created a blog just for this. Blog Post
I am using Client Object Model to update property of items in a list of SharePoint online. My requirement is to update Title field of item without changing or affecting the modified date of item using Client Object Model.
Thanks
Prakash
The Managed Client Object Model have "limitation" with regards to the way a List Item Update works - that is there is no SystemUpdate type functionality available like in the 'full' SharePoint Object Model.
What I can suggest is that if you really want this functionality, write your own custom web service that updates the document metadata using SystemUpdate so a new version isn't created and deploy it to your SharePoint Server. This will allow you to call your custom web service from your code and will satisfy your requirements.
I hope this helps
If we Check
ListItem methods regarding Microsoft.SharePoint.Client
msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem_methods.aspx
and
SPListItem Methods regarding Microsoft.SharePoint.
msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.listitem_methods.aspx
The method "SysytemUpdate" is only present in Microsoft.SharePoint SPListItem class but not under Microsoft.Sharepoint.Client ListItem class. So, from clent object model we cannot update list data without affecting modifying date.
you can check client object model post in my blog
Thanks,
Adi
SharePoint Codes