-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
js-advanced-commenting Migrate existing comments (programmatically) #5352
Comments
Hi @sudharsank, Would you be to able answer my question above? Sanjeev |
Hello @sanjeevba , This is a complex question ;) |
Hi @a1mery, I don't quite understand why I'd have to 'update my data architecture'. The only fields I'd be migrating would be: Comment txt, Author, and Created date. I was hoping I could look at an existing list item created by the web part and programmatically create additional (similar) list items for the migrated comments. Sanjeev |
Hi Sanjeev,
Below is the schema that is used for Modern Comments. When you migrate the existing comments, you should update the other fields as well with the correct values and also if you have any replies, the parent and the child should be mapped correctly.
"id": "c4",
"parent": null,
"created": "2023-06-24T10:52:45.584Z",
"modified": "2023-06-24T10:52:45.584Z",
"content": "sd fsd ds fd",
"pings": {},
"fullname": "Sudha",
"profile_picture_url": ***@***.***",
"created_by_current_user": false,
"upvote_count": 0,
"user_has_upvoted": false,
"userid": 7
I hope the above clarifies your question.
Thanks,
Sudharsan
…________________________________
From: sanjeevba ***@***.***>
Sent: Thursday, November 28, 2024 10:42 PM
To: pnp/sp-dev-fx-webparts ***@***.***>
Cc: Sudharsan Kesavanarayanan ***@***.***>; Mention ***@***.***>
Subject: Re: [pnp/sp-dev-fx-webparts] js-advanced-commenting Migrate existing comments (programmatically) (Issue #5352)
Hi @a1mery<https://github.com/a1mery>,
I don't quite understand why I'd have to 'update my data architecture'. The only fields I'd be migrating would be: Comment txt, Author, and Created date.
I was hoping I could look at an existing list item created by the web part and programmatically create additional (similar) list items for the migrated comments.
Sanjeev
—
Reply to this email directly, view it on GitHub<#5352 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACON3QLHMIZY4O7VCQV7IZL2C4TUZAVCNFSM6AAAAABSKDJJ36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBWGI3TQNBZGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
It does! Thank you! Sanjeev |
Disclaimer
Yes
Sample
js-advanced-commenting
Contributor(s)
@hugoabernier
Question
Hi Hugo,
I'm migrating a legacy web app to SPO and I would like to migrate existing comments. Is there an easy way to do this? I imagine your webpart stores everything in a SP list.? Would I just programmatically load data into that list?
Sanjeev
The text was updated successfully, but these errors were encountered: