0
如何使用Javascript在SharePoint日曆列表中設置RecurrenceData值?如何使用Javascript在SharePoint日曆列表中設置RecurrenceData值
var recurreciveData = "<recurrence>
<rule>
<repeat>
<daily dayFrequency=\"" + repeatDayz + "\" />
</repeat>
<windowStart>
" + repeatStrtDate.toISOString() + "
</windowStart>
<windowEnd>
" + repeatEndDate.toISOString() + "
</windowEnd>
</rule></recurrence>";
var data = JSON.stringify({
"__metadata": {
"type": "SP.Data."+ listName +"ListItem"
},
"Title": title,
"Location": location,
"RoomId": room,
"EventDate": strtDate,
"EndDate": endDate,
"fRecurrence": true,
"RecurrenceData": recurreciveData,
});
瓦迪姆嗨!謝謝!更改爲JSOM,效果很好,但在「日曆」視圖中打開時出現問題:https://sharepoint.stackexchange.com/questions/215859/jsom-calendar-recurring-task-item-does-not-exist-it-may -have-been-deleted-by你沒有這個問題嗎? –