簡體   English   中英

使用Javascript從Salesforce日歷中獲取數據

[英]Fetch data from Salesforce Calendar using Javascript

什么是最好(或至少以任何方式)如何理想地使用JavaScript從Salesforce日歷中獲取事件。 我沒有可用的服務器端處理器,也沒有安裝任何東西的可能性。 只是一點背景,我需要將此信息提取到Sharepoint,那里有JS網頁。

您可以使用以下方法從API獲取數據:

fetch("https://swapi.co/api/people/1")      // Return response promise.
.then((res) => res.json())                  // Return data and parse JSON.
.then((data) => console.log(data.name))     // Do something with data.
.catch((err) => err);                       // Catch error.

// Output is "Luke Skywalker"

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM