How to add Discussionboard ListItem with parentItemId with MS Graph API
up vote
0
down vote
favorite
I have my DiscussionBoard listItem in sharepoint, and now I would like to add a new reply to a topic with MS Graph beta. When I created a listItem which I know the topic Id(ParentItemID in Json file). but it is read-only, I can't write value to this field. How can I add the field or where the place to add this relationship ?
ListItem item = new ListItem();
item.Description = "test";
item.Name = "test";
item.ContentType = new ContentTypeInfo();
item.ContentType.Id = commentContentType;
item.Fields = new FieldValueSet();
item.Fields.AdditionalData = new Dictionary<string, object>();
item.Fields.AdditionalData.Add("Body", "test");
item.Fields.AdditionalData.Add("ParentItemID", "10");
api graph
add a comment |
up vote
0
down vote
favorite
I have my DiscussionBoard listItem in sharepoint, and now I would like to add a new reply to a topic with MS Graph beta. When I created a listItem which I know the topic Id(ParentItemID in Json file). but it is read-only, I can't write value to this field. How can I add the field or where the place to add this relationship ?
ListItem item = new ListItem();
item.Description = "test";
item.Name = "test";
item.ContentType = new ContentTypeInfo();
item.ContentType.Id = commentContentType;
item.Fields = new FieldValueSet();
item.Fields.AdditionalData = new Dictionary<string, object>();
item.Fields.AdditionalData.Add("Body", "test");
item.Fields.AdditionalData.Add("ParentItemID", "10");
api graph
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have my DiscussionBoard listItem in sharepoint, and now I would like to add a new reply to a topic with MS Graph beta. When I created a listItem which I know the topic Id(ParentItemID in Json file). but it is read-only, I can't write value to this field. How can I add the field or where the place to add this relationship ?
ListItem item = new ListItem();
item.Description = "test";
item.Name = "test";
item.ContentType = new ContentTypeInfo();
item.ContentType.Id = commentContentType;
item.Fields = new FieldValueSet();
item.Fields.AdditionalData = new Dictionary<string, object>();
item.Fields.AdditionalData.Add("Body", "test");
item.Fields.AdditionalData.Add("ParentItemID", "10");
api graph
I have my DiscussionBoard listItem in sharepoint, and now I would like to add a new reply to a topic with MS Graph beta. When I created a listItem which I know the topic Id(ParentItemID in Json file). but it is read-only, I can't write value to this field. How can I add the field or where the place to add this relationship ?
ListItem item = new ListItem();
item.Description = "test";
item.Name = "test";
item.ContentType = new ContentTypeInfo();
item.ContentType.Id = commentContentType;
item.Fields = new FieldValueSet();
item.Fields.AdditionalData = new Dictionary<string, object>();
item.Fields.AdditionalData.Add("Body", "test");
item.Fields.AdditionalData.Add("ParentItemID", "10");
api graph
api graph
asked Nov 7 at 19:22
Y.N
12
12
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53196379%2fhow-to-add-discussionboard-listitem-with-parentitemid-with-ms-graph-api%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown